import sys, os
import Image
print "globals() is %r" % id(globals())
def somefunc():
print "globals() is %r" % id(globals())
print "Hello from py2app"
print "frozen", repr(getattr(sys, "frozen", None))
print "sys.path", sys.path
print "sys.executable", sys.executable
print "sys.prefix", sys.prefix
print "sys.argv", sys.argv
print "os.getcwd()", os.getcwd()
if __name__ == '__main__':
somefunc()
|