mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Merge pull request #517 from uranusjr/abspath
Use os.path.isabs to detect absolute path commands
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user