Skip to content

Commit 15dff7a

Browse files
Fixed issue on PowerShell Core
1 parent d5b6933 commit 15dff7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Source/EnablePython.psd1

Lines changed: 1 addition & 1 deletion
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.0.0'
15+
ModuleVersion = '2.0.1'
1616

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

Source/EnablePython.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ function getPythonVersion([System.Management.Automation.ApplicationInfo]$executa
396396

397397
function is64Bit {
398398
# Check if this machine is 64-bit
399-
((Get-WmiObject Win32_OperatingSystem).OSArchitecture -match '64-bit')
399+
((Get-CimInstance Win32_OperatingSystem).OSArchitecture -match '64-bit')
400400
}
401401

402402
Export-ModuleMember "*-*"

0 commit comments

Comments
 (0)