Commit ee8f3249 authored by Antoine Catton's avatar Antoine Catton

Use shlex to split command line

parent f15bb155
...@@ -28,6 +28,7 @@ import logging ...@@ -28,6 +28,7 @@ import logging
import os import os
from platform import uname from platform import uname
import setuptools import setuptools
import shlex
import shutil import shutil
import subprocess import subprocess
import tempfile import tempfile
...@@ -86,7 +87,7 @@ def call(*args, **kwargs): ...@@ -86,7 +87,7 @@ def call(*args, **kwargs):
def calls(call_string, **kwargs): def calls(call_string, **kwargs):
"""Subprocesser caller which allows to pass arguments as string""" """Subprocesser caller which allows to pass arguments as string"""
call(call_string.split(), **kwargs) call(shlex.split(call_string), **kwargs)
def guessworkdir(path): def guessworkdir(path):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment