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
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "secrets"]
path = secrets
url = ssh://gogs@git.unloze.com:2222/UNLOZE/sm-plugins-secrets.git

View File

@ -15,7 +15,8 @@ if __name__ == "__main__":
Plugins = [] Plugins = []
Path, Directories, Files = next(os.walk(".")) Path, Directories, Files = next(os.walk("."))
for Directory in Directories: 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) Plugins.append(Directory)
for Plugin in Plugins: for Plugin in Plugins:
@ -31,7 +32,7 @@ if __name__ == "__main__":
OutDir = "plugins" OutDir = "plugins"
OutPath = os.path.join(OutDir, os.path.splitext(os.path.basename(SourcePath))[0] + ".smx") 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): if os.path.isdir(IncludePath):
Compiler.append("-i" + IncludePath) Compiler.append("-i" + IncludePath)
Compiler.append(SourcePath) Compiler.append(SourcePath)

View File

@ -14,7 +14,7 @@ SPCOMP = "./spcomp"
if __name__ == "__main__": if __name__ == "__main__":
Plugins = [] Plugins = []
for Directory in sys.argv[1:]: for Directory in sys.argv[1:]:
if Directory != ".git" and Directory != "include" and Directory != "includes" and Directory != "plugins": if Directory != ".git" and Directory != "include" and Directory != "includes" and Directory != "plugins" and Directory != "secrets":
Plugins.append(Directory) Plugins.append(Directory)
for Plugin in Plugins: for Plugin in Plugins:
@ -28,7 +28,7 @@ if __name__ == "__main__":
OutDir = "plugins" OutDir = "plugins"
OutPath = os.path.join(OutDir, os.path.splitext(os.path.basename(SourcePath))[0] + ".smx") 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): if os.path.isdir(IncludePath):
Compiler.append("-i" + IncludePath) Compiler.append("-i" + IncludePath)
Compiler.append(SourcePath) Compiler.append(SourcePath)

1
secrets Submodule

@ -0,0 +1 @@
Subproject commit 090534b1abe620d7219b965855d758fa09896cea