Skip to content

Commit a6b6323

Browse files
committed
Update customizations.py
1 parent 52dd04b commit a6b6323

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

codeqlsummarize/exporters/customizations.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ def exportCustomizations(
105105
"""
106106

107107
CODEQL_CUSTOMIZATIONS_QLL = """\
108-
// This file is Automatically Generated
108+
// This file is Automatically Generated based on the files in-side this relative
109+
// directory. This makes it easier to automate this process.
109110
import {language}
110111
111112
module {owner} {{
@@ -159,8 +160,10 @@ def exportBundle(database: CodeQLDatabase, output: str, github: GitHub, **kargs)
159160
for custom in os.listdir(sub):
160161
if custom == "Customizations.qll":
161162
continue
163+
164+
custom = custom.replace(".qll", "")
162165

163-
impt = f" private import {owner}.{database.language}.{name}\n"
166+
impt = f" private import {owner}.{database.language}.{custom}\n"
164167
customizations_data += impt
165168

166169
with open(customizations_path, "w") as handle:

0 commit comments

Comments
 (0)