Skip to content

Commit

Permalink
Allow setting the terminal through a tuple instead of a list (#957)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathias Svensson committed Apr 19, 2017
1 parent e90fb15 commit 9b50163
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pwnlib/util/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ def run_in_new_terminal(command, terminal = None, args = None):
if not terminal_path:
log.error('Could not find terminal: %s' % terminal)

if isinstance(args, tuple):
args = list(args)

argv = [terminal_path] + args

if isinstance(command, str):
Expand Down

0 comments on commit 9b50163

Please sign in to comment.