console.py: Fix #21 (IndexError caused by clearing sys.argv)

master
Jan Holthuis 6 years ago
parent e1bb049ef0
commit 11753b9e92
  1. 2
      pappyproxy/console.py

@ -28,7 +28,7 @@ def print_errors(func):
def interface_loop(client):
cons = Cmd(client=client)
load_interface(cons)
sys.argv = []
sys.argv = sys.argv[:1]
cons.cmdloop()
def load_interface(cons):

Loading…
Cancel
Save