add sm-plugins-secrets

This commit is contained in:
BotoX
2019-09-21 23:50:10 +02:00
parent 5d68fdd897
commit 450646cb7f
4 changed files with 9 additions and 4 deletions
+3 -2
View File
@@ -15,7 +15,8 @@ if __name__ == "__main__":
Plugins = []
Path, Directories, Files = next(os.walk("."))
for Directory in Directories:
if not Directory.startswith(".") and not Directory.startswith("_") and Directory != "include" and Directory != "includes" and Directory != "plugins":
if not Directory.startswith(".") and not Directory.startswith("_") and \
Directory != "include" and Directory != "includes" and Directory != "plugins" and Directory != "secrets":
Plugins.append(Directory)
for Plugin in Plugins:
@@ -31,7 +32,7 @@ if __name__ == "__main__":
OutDir = "plugins"
OutPath = os.path.join(OutDir, os.path.splitext(os.path.basename(SourcePath))[0] + ".smx")
Compiler = [SPCOMP, "-i" + SM_INCLUDES, "-i" + "include"]
Compiler = [SPCOMP, "-i" + SM_INCLUDES, "-i" + "include", "-i" + "secrets"]
if os.path.isdir(IncludePath):
Compiler.append("-i" + IncludePath)
Compiler.append(SourcePath)