Browse Source

Always return ps1 on windows

master
Jelle Spijker 4 years ago committed by GitHub
parent
commit
7da9f433c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      generators/VirtualPythonEnv.py

3
generators/VirtualPythonEnv.py

@ -18,10 +18,7 @@ class VirtualPythonEnv(Generator):
@property
def _script_ext(self):
if self.conanfile.settings.get_safe("os") == "Windows":
if self.conanfile.conf.get("tools.env.virtualenv:powershell", check_type = bool):
return ".ps1"
else:
return ".bat"
return ".sh"
@property

Loading…
Cancel
Save