Skip to content

Commit

Permalink
reexec now works with python -m nuitka usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
pi-anl authored and kayhayen committed Dec 29, 2017
1 parent 742d79e commit fa26fea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nuitka/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,13 @@
# Potentially give Python command line flags as necessary.
args.append("-S")

# If we were run directly as the module, replace with this file
argv = sys.argv
if argv[0] == 'nuitka':
argv = [__file__] + argv[1:]

# Same arguments as before.
args += sys.argv + list(Options.getMainArgs())
args += argv + list(Options.getMainArgs())

if current_version == intended_version:
os.environ["NUITKA_PYTHONPATH"] = repr(
Expand Down

0 comments on commit fa26fea

Please sign in to comment.