We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04f8509 commit 8c96254Copy full SHA for 8c96254
2 files changed
resources/main.py
@@ -15,10 +15,6 @@
15
16
__addon__ = xbmcaddon.Addon()
17
18
-if os.name == 'nt':
19
- import _winreg
20
-
21
22
plugin = routing.Plugin()
23
24
@plugin.route('/')
resources/registry.py
@@ -2,10 +2,13 @@
2
get registry values for steam games
3
'''
4
5
-import os, _winreg
+import os
6
import xbmc
7
from config import log
8
9
+if os.name == 'nt':
10
+ import _winreg
11
+
12
# https://github.com/lutris/lutris/blob/master/lutris/util/steam.py
13
def vdf_parse(steam_config_file, config):
14
"""Parse a Steam config file and return the contents as a dict."""
@@ -65,7 +68,7 @@ def get_registry_values(registry_path):
65
68
else:
66
69
app_dict[app_id] = installed
67
70
i += 1
71
72
except WindowsError:
73
pass
74
0 commit comments