mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
This patch introduces the basic infrastructure of the code generation suite and the `dbscheme` generator. Notice that the checked in `schema.yml` should reflect swift 5.6 but might need some tweaking. Closes https://github.com/github/codeql-c-team/issues/979
16 lines
388 B
Python
16 lines
388 B
Python
import pathlib
|
|
import sys
|
|
import os
|
|
|
|
try:
|
|
_workspace_dir = pathlib.Path(os.environ['BUILD_WORKSPACE_DIRECTORY'])
|
|
swift_dir = _workspace_dir / 'swift'
|
|
lib_dir = swift_dir / 'codegen' / 'lib'
|
|
except KeyError:
|
|
_this_file = pathlib.Path(__file__).resolve()
|
|
swift_dir = _this_file.parents[2]
|
|
lib_dir = _this_file.parent
|
|
|
|
|
|
exe_file = pathlib.Path(sys.argv[0]).resolve()
|