Merge pull request #517 from uranusjr/abspath

Use os.path.isabs to detect absolute path commands
This commit is contained in:
2017-09-10 17:45:41 -04:00
committed by GitHub
+1 -1
View File
@@ -1298,7 +1298,7 @@ def run(command, args, three=None, python=False, system=False):
ensure_project(three=three, python=python, validate=False)
_which = 'which' if not os.name == 'nt' else 'where'
if command.startswith(os.sep):
if os.path.isabs(command):
system = True
command_path = which(command) if not system else command