diff --git a/hererocks.py b/hererocks.py index e152712..bbf1141 100755 --- a/hererocks.py +++ b/hererocks.py @@ -6,6 +6,7 @@ import argparse import hashlib +import inspect import json import os import platform @@ -1645,7 +1646,7 @@ def setup_vs_and_rerun(vs_version, arch): argv_name = os.path.join(temp_dir, "argv") setup_output_name = os.path.join(temp_dir, "setup_out") - script_arg = '"{}"'.format(sys.argv[0]) + script_arg = '"{}"'.format(inspect.getsourcefile(main)) if sys.executable: script_arg = '"{}" {}'.format(sys.executable, script_arg)