Compile script beauty fixes

This commit is contained in:
BotoX
2017-08-02 22:33:40 +02:00
parent 29e1313f91
commit 0749b4de9c
2 changed files with 12 additions and 2 deletions
+3 -1
View File
@@ -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("")