Skip to content

Commit

Permalink
Changed order of args and kwargs in subprocess call
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael de Villiers committed Dec 21, 2016
1 parent 5f65fbe commit 1759018
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pppd.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from subprocess import Popen, PIPE, STDOUT

__version__ = '1.0.2'
__version__ = '1.0.3'

PPPD_RETURNCODES = {
1: 'Fatal error occured',
Expand Down Expand Up @@ -61,10 +61,10 @@ def __init__(self, *args, **kwargs):

commands.append(pppd_path)

commands.extend(args)
for k,v in kwargs.items():
commands.append(k)
commands.append(v)
commands.extend(args)
commands.append('nodetach')

self.proc = Popen(commands, stdout=PIPE, stderr=STDOUT, universal_newlines=True)
Expand Down

0 comments on commit 1759018

Please sign in to comment.