Skip to content

Instantly share code, notes, and snippets.

@jleedev
Created December 3, 2010 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jleedev/727078 to your computer and use it in GitHub Desktop.
Save jleedev/727078 to your computer and use it in GitHub Desktop.
hello world!
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