Skip to content

Commit

Permalink
clear sys.argv after parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
mesmith75 committed Mar 6, 2024
1 parent 54b2397 commit 46d3994
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ganga/GangaCore/Runtime/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,9 @@ def file_opens(f, message):
if not self.options.force_interactive:
self.interactive = False

getLogger.debug('Clearing the sys.argv')
sys.argv = sys.argv[:1]

# Can't check here if the file is readable, because the path isn't known
# file_opens(self.args[0],'reading script')

Expand Down

0 comments on commit 46d3994

Please sign in to comment.