-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
Description
I was wondering if you had any plans for say pre-made binaries that the user could just download and run?
I locally setup a setup a working singlefile py2exe setup.py (using 32bit 2.7 python) and I edited main.py to correctly support the difference in the zip below.
LSL-PyOptimizer.zip
the specifics of the change to main.py are here
def main(argv):
"""Main executable."""
+ import os
+
+ if hasattr(sys,"frozen") and sys.frozen in ("windows_exe", "console_exe"):
+ lslopt.lslcommon.DataPath=(os.path.dirname(os.path.abspath(sys.executable)) + os.sep)
+ else:
# If it's good to append the basename to it, it's good to append the
# auxiliary files' names to it, which should be located where this file is.
lslopt.lslcommon.DataPath = __file__[:-len(os.path.basename(__file__))]