Skip to content

Commit e2f9fbd

Browse files
More quote fixes for WinPS/PS7 compat
1 parent 77449f7 commit e2f9fbd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

EnablePython/EnablePython.psd1

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
RootModule = 'EnablePython.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '2.3.2'
15+
ModuleVersion = '2.3.3'
1616

1717
# ID used to uniquely identify this module
1818
GUID = '20232e29-56bc-4024-823b-afe3994c9365'

EnablePython/EnablePython.psm1

+2-2
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ https://github.com/DavidWhittingham/ps-EnablePython
188188
}
189189

190190
# Get the user scripts path, add it to PATH as well
191-
$userScriptsPath = & $foundVersion.Executable -E -c 'import sysconfig; print(sysconfig.get_path(""scripts"", scheme=""nt_user""))'
191+
$userScriptsPath = & $foundVersion.Executable -E -c 'import sysconfig; print(sysconfig.get_path(''scripts'', scheme=''nt_user''))'
192192
$Env:PATH = "$userScriptsPath;$Env:Path"
193193

194194
# attempt to enable conda
@@ -468,7 +468,7 @@ function getArcGisProPython() {
468468
}
469469

470470
# format is "Platform|Tag|Version"
471-
$pythonInfoCommand = 'import platform; import sys; import sysconfig; print("{}|{}|{}".format(sysconfig.get_platform(), sys.winver, platform.python_version()))'
471+
$pythonInfoCommand = 'import platform; import sys; import sysconfig; print(''{}|{}|{}''.format(sysconfig.get_platform(), sys.winver, platform.python_version()))'
472472
$pythonInfo = (& $pythonExecutable -E -c $pythonInfoCommand).Split("|")
473473

474474
$company = "Esri"

0 commit comments

Comments
 (0)