diff options
| author | Matthias Hoelzl | 2017-10-04 23:21:32 +0200 |
|---|---|---|
| committer | Matthias Hoelzl | 2017-10-04 23:21:32 +0200 |
| commit | 727a381fc902cd93d23b3624359bad38d49539d0 (patch) | |
| tree | 9b47cff0bf3b3efc50849ba859d831f428de5d2f /modules/mono | |
| parent | 2e6f2ed0325c65c2b623532bb3b7e191064fe937 (diff) | |
| download | godot-727a381fc902cd93d23b3624359bad38d49539d0.tar.gz godot-727a381fc902cd93d23b3624359bad38d49539d0.tar.zst godot-727a381fc902cd93d23b3624359bad38d49539d0.zip | |
Diffstat (limited to 'modules/mono')
| -rw-r--r-- | modules/mono/mono_reg_utils.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/mono/mono_reg_utils.py b/modules/mono/mono_reg_utils.py index 6f1620ff4..e9988625f 100644 --- a/modules/mono/mono_reg_utils.py +++ b/modules/mono/mono_reg_utils.py @@ -1,7 +1,11 @@ import os if os.name == 'nt': - import _winreg as winreg + import sys + if sys.version_info < (3,): + import _winreg as winreg + else: + import winreg def _reg_open_key(key, subkey): |
