witten
/
luminotes
Archived
1
0
Fork 0

Automatically assume "-l" (local/desktop) option when running from within a py2exe executable.

This commit is contained in:
Dan Helfman 2008-08-21 17:25:25 -07:00
parent ad62d6c87c
commit af145cd79c
1 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,8 @@ def main( args ):
if args and "-d" in args:
from config import Development
settings = Development.settings
elif args and "-l" in args:
# sys.frozen is from py2exe
elif args and "-l" in args or hasattr( sys, "frozen" ):
from config import Desktop
settings = Desktop.settings
else: