Created
December 3, 2010 15:13
-
-
Save jleedev/727078 to your computer and use it in GitHub Desktop.
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
hello world! |
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
import sys | |
print sys.argv[0] | |
import os.path | |
ROOT = os.path.join(os.path.dirname(sys.argv[0]), '..') | |
print open(os.path.join(ROOT, 'res', 'hello.txt')).read() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment