Skip to content

Instantly share code, notes, and snippets.

@rudylattae
Created November 29, 2011 06:48
Show Gist options
  • Save rudylattae/1403752 to your computer and use it in GitHub Desktop.
Save rudylattae/1403752 to your computer and use it in GitHub Desktop.
Python tips
# DRY for os.path.join
import os
j = lambda filename: os.path.join('/my/base/path', filename)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment