mirror of
https://github.com/kennethreitz-archive/pyinstaller.git
synced 2026-06-05 23:50:17 +00:00
b98a53df92
git-svn-id: http://svn.pyinstaller.org/trunk@2 8dd32b29-ccff-0310-8a9a-9233e24343b1
14 lines
312 B
Python
14 lines
312 B
Python
import sys, os
|
|
import test6x
|
|
print "test6x.x is", test6x.x
|
|
txt = """\
|
|
x = %d
|
|
""" % (test6x.x + 1)
|
|
if hasattr(sys, 'frozen'):
|
|
open(os.path.join(os.path.dirname(sys.executable), 'test6x.py'), 'w').write(txt)
|
|
else:
|
|
open(test6x.__file__, 'w').write(txt)
|
|
reload(test6x)
|
|
print "test6x.x is now", test6x.x
|
|
|
|
|