Skip to content

Commit 2a04631

Browse files
author
m0d9
committed
repair bug
1 parent 696dfa4 commit 2a04631

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

run.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@ def init_env(self):
3333
self.codeql_home = codeql_home
3434
print(f"[*extract_log*] codeql_home : {codeql_home}")
3535
s = platform.system().lower()
36-
s = 'osx' if s == 'darwin' else s
36+
MAPPING = {'darwin': 'osx',
37+
'windows': 'win',
38+
'linux': 'linux'
39+
}
40+
if s in MAPPING:
41+
s = MAPPING.get(s)
3742
# print(f"{codeql_home}/tools/{s}*/java")
3843
codeql_java_home = glob.glob(f"{codeql_home}/tools/{s}*/java")[0]
3944
self.codeql_java_home = codeql_java_home

0 commit comments

Comments
 (0)