mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
IGN:calibre-debug -e Fix handling od sys.argv
This commit is contained in:
parent
9f682b7b0f
commit
9ab452eb67
@ -165,7 +165,7 @@ def main(args=sys.argv):
|
||||
sys.argv = args[:1]
|
||||
exec opts.command
|
||||
elif opts.exec_file:
|
||||
sys.argv = args[:1]
|
||||
sys.argv = args
|
||||
base = os.path.dirname(os.path.abspath(opts.exec_file))
|
||||
sys.path.insert(0, base)
|
||||
g = globals()
|
||||
|
Loading…
x
Reference in New Issue
Block a user