Compile script beauty fixes
This commit is contained in:
parent
29e1313f91
commit
0749b4de9c
@ -3,6 +3,11 @@ import os
|
||||
import sys
|
||||
import subprocess
|
||||
|
||||
c_null = "\x1b[00;00m"
|
||||
c_red = "\x1b[31;01m"
|
||||
c_blue = "\x1b[34;01m"
|
||||
c_green = "\x1b[32;01m"
|
||||
|
||||
SM_INCLUDES = "includes"
|
||||
SPCOMP = "./spcomp"
|
||||
|
||||
@ -14,12 +19,13 @@ if __name__ == "__main__":
|
||||
Plugins.append(Directory)
|
||||
|
||||
for Plugin in Plugins:
|
||||
print("Compiling {0}".format(Plugin))
|
||||
print(c_red + "### Compiling {0}".format(Plugin) + c_null)
|
||||
|
||||
SourcePath = os.path.join(Plugin, "scripting")
|
||||
Path, Directories, Files = next(os.walk(SourcePath))
|
||||
for File in Files:
|
||||
if File.endswith(".sp"):
|
||||
print(c_green + "# Compiling {0} ({1})".format(os.path.basename(File), Plugin) + c_null)
|
||||
SourcePath = os.path.join(Path, File)
|
||||
IncludePath = os.path.join(Path, "include")
|
||||
OutDir = "plugins"
|
||||
@ -35,3 +41,5 @@ if __name__ == "__main__":
|
||||
subprocess.run(Compiler, check=True)
|
||||
except Exception:
|
||||
sys.exit(1)
|
||||
|
||||
print("")
|
||||
|
@ -21,8 +21,8 @@ if __name__ == "__main__":
|
||||
SourcePath = os.path.join(Plugin, "scripting")
|
||||
Path, Directories, Files = next(os.walk(SourcePath))
|
||||
for File in Files:
|
||||
print('\n' + c_green + "# Compiling {0} ({1})".format(os.path.basename(File), Plugin) + c_null)
|
||||
if File.endswith(".sp"):
|
||||
print(c_green + "# Compiling {0} ({1})".format(os.path.basename(File), Plugin) + c_null)
|
||||
SourcePath = os.path.join(Path, File)
|
||||
IncludePath = os.path.join(Path, "include")
|
||||
OutDir = "plugins"
|
||||
@ -38,3 +38,5 @@ if __name__ == "__main__":
|
||||
subprocess.run(Compiler, check=True)
|
||||
except Exception:
|
||||
sys.exit(1)
|
||||
|
||||
print("")
|
||||
|
Loading…
Reference in New Issue
Block a user