From af145cd79ca59b275e9a81b92a60b10caa161d3e Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Thu, 21 Aug 2008 17:25:25 -0700 Subject: [PATCH] Automatically assume "-l" (local/desktop) option when running from within a py2exe executable. --- luminotes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/luminotes.py b/luminotes.py index 4e8e161..0e96f38 100755 --- a/luminotes.py +++ b/luminotes.py @@ -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: