Skip to content

Commit a4e3f2f

Browse files
Fix main for Python2
1 parent dfc3971 commit a4e3f2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

softioc/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from argparse import ArgumentParser
44
import subprocess
55

6-
from softioc import __version__
6+
from . import __version__
77

88

99
def main(args=None):
@@ -14,7 +14,7 @@ def main(args=None):
1414
"arg", help="Any arguments to pass to the script", nargs="*")
1515
parsed_args = parser.parse_args(args)
1616
# Execute as subprocess
17-
cmd = [sys.executable, parsed_args.script, *parsed_args.arg]
17+
cmd = [sys.executable, parsed_args.script] + parsed_args.arg
1818
subprocess.Popen(cmd).communicate()
1919

2020

0 commit comments

Comments
 (0)