File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
script_path = Path (__file__ )
6
6
# 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' ) )
8
8
from codeql import CodeQL
9
9
10
10
Original file line number Diff line number Diff line change 1
1
from contextlib import redirect_stdout
2
2
from pathlib import Path
3
- from codeql import CodeQLError , CodeQLValidationSummary
3
+ from codeqlvalidation import CodeQLValidationSummary
4
4
from error import failure
5
5
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
+
6
13
7
14
if __name__ == '__main__' :
8
15
failure ("Error: this Python module does not support standalone execution!" )
Original file line number Diff line number Diff line change 1
1
from contextlib import redirect_stdout
2
2
from pathlib import Path
3
- from codeql import CodeQLError , CodeQLValidationSummary
3
+ from codeqlvalidation import CodeQLValidationSummary
4
4
from error import failure
5
+ import sys
5
6
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
6
11
7
12
class DiagnosticsSummary :
8
13
def __init__ (self , database_path , repo_root ):
You can’t perform that action at this time.
0 commit comments