]> granicus.if.org Git - python/commitdiff
Toby Dickenson:
authorGuido van Rossum <guido@python.org>
Sat, 6 May 2000 03:18:08 +0000 (03:18 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 6 May 2000 03:18:08 +0000 (03:18 +0000)
Fix for problem with freeze when both "-m" and "-s service" options
are used.

(Blessed by MarkH)

Tools/freeze/freeze.py

index 9627a27f4ae9866b9ef0e09d54f5f7ac7f81c73e..9502f1b39ba97f9dead777b1d66e6c8a40758656 100755 (executable)
@@ -335,10 +335,7 @@ def main():
     if python_entry_is_main:
         mf.run_script(scriptfile)
     else:
-        if modargs:
-            mf.import_hook(scriptfile)
-        else:
-            mf.load_file(scriptfile)
+        mf.load_file(scriptfile)
 
     if debug > 0:
         mf.report()