Commit a40646fd authored by Christian Stenger's avatar Christian Stenger Committed by hjk
Browse files

Don't treat as argument

Change-Id: I004dd5eab6733efaca4032e4fdb432f54c5f7114
Reviewed-by: default avatarhjk <>
parent 6c145823
......@@ -675,11 +675,13 @@ class Dumper:
def runit(self):
print("DIR: %s" % dir())
if sys.argv[0] == '-c':
sys.argv = sys.argv[2:]
sys.argv = sys.argv[1:]
print("ARGV: %s" % sys.argv)
mainpyfile = sys.argv[1] # Get script filename
mainpyfile = sys.argv[0] # Get script filename
self.savedArgv = sys.argv[1:]
print("SARGV: %s" % self.savedArgv)
print("MAIN: %s" % mainpyfile)
while True:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment