Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ea455ed

Browse filesBrowse files
committed
Address CodeQL module import issues
1 parent a759166 commit ea455ed
Copy full SHA for ea455ed

File tree

Expand file treeCollapse file tree

3 files changed

+15
-3
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+15
-3
lines changed

‎scripts/reports/codeql.py renamed to ‎scripts/reports/codeqlvalidation.py

Copy file name to clipboardExpand all lines: scripts/reports/codeqlvalidation.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
script_path = Path(__file__)
66
# Add the shared modules to the path so we can import them.
7-
sys.path.append(script_path.parent.parent / 'shared')
7+
sys.path.append(str(script_path.parent.parent / 'shared'))
88
from codeql import CodeQL
99

1010

‎scripts/reports/deviations.py

Copy file name to clipboardExpand all lines: scripts/reports/deviations.py
+8-1Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
from contextlib import redirect_stdout
22
from pathlib import Path
3-
from codeql import CodeQLError, CodeQLValidationSummary
3+
from codeqlvalidation import CodeQLValidationSummary
44
from error import failure
55
import re
6+
import sys
7+
8+
script_path = Path(__file__)
9+
# Add the shared modules to the path so we can import them.
10+
sys.path.append(str(script_path.parent.parent / 'shared'))
11+
from codeql import CodeQLError
12+
613

714
if __name__ == '__main__':
815
failure("Error: this Python module does not support standalone execution!")

‎scripts/reports/diagnostics.py

Copy file name to clipboardExpand all lines: scripts/reports/diagnostics.py
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
from contextlib import redirect_stdout
22
from pathlib import Path
3-
from codeql import CodeQLError, CodeQLValidationSummary
3+
from codeqlvalidation import CodeQLValidationSummary
44
from error import failure
5+
import sys
56

7+
script_path = Path(__file__)
8+
# Add the shared modules to the path so we can import them.
9+
sys.path.append(str(script_path.parent.parent / 'shared'))
10+
from codeql import CodeQLError
611

712
class DiagnosticsSummary:
813
def __init__(self, database_path, repo_root):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.