Skip to content

Commit 50be3f0

Browse files
Support Python <3.10
Signed-off-by: Jean-Christophe Morin <[email protected]>
1 parent 7904d0d commit 50be3f0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ def find_files(pattern, path=None, root="rez"):
6666
# Note that this is not done on Windows because the Windows launcher
6767
# already does this.
6868
if not sys.flags.ignore_environment and platform.system() != 'Windows':
69-
args = sys.orig_argv[:]
70-
args[0] = sys.executable
71-
args.insert(1, '-E')
69+
args = [sys.executable, '-E'] + sys.argv
7270
if os.getenv('REZ_LAUNCHER_DEBUG'):
7371
print('Launching:', ' '.join(args))
7472
os.execvp(sys.executable, args)

0 commit comments

Comments
 (0)