Fix shlex.split() call to check for posix first

- Currently it assumes posix complience and uses `posix=True`
- This breaks when parsing on windows
This commit is contained in:
Dan Ryan
2018-03-23 23:48:44 -04:00
parent c7cd4bd864
commit f36f7ca1bc
+2 -1
View File
@@ -369,8 +369,9 @@ class Project(object):
@property
def scripts(self):
scripts = self.parsed_pipfile.get('scripts', {})
posix = os.name == 'posix'
for (k, v) in scripts.items():
scripts[k] = shlex.split(v, posix=True)
scripts[k] = shlex.split(v, posix=posix)
return scripts
def update_settings(self, d):