Created
November 29, 2011 06:48
-
-
Save rudylattae/1403752 to your computer and use it in GitHub Desktop.
Python tips
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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