add sm-plugins-secrets
This commit is contained in:
parent
5d68fdd897
commit
450646cb7f
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
[submodule "secrets"]
|
||||
path = secrets
|
||||
url = ssh://gogs@git.unloze.com:2222/UNLOZE/sm-plugins-secrets.git
|
@ -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)
|
||||
|
@ -14,7 +14,7 @@ SPCOMP = "./spcomp"
|
||||
if __name__ == "__main__":
|
||||
Plugins = []
|
||||
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)
|
||||
|
||||
for Plugin in Plugins:
|
||||
@ -28,7 +28,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)
|
||||
|
1
secrets
Submodule
1
secrets
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 090534b1abe620d7219b965855d758fa09896cea
|
Loading…
Reference in New Issue
Block a user