Lots of small fixes/improvements

This commit is contained in:
BotoX
2017-05-20 05:08:31 +02:00
parent 3912295377
commit 371d1ce242
10 changed files with 40 additions and 76 deletions
+6 -2
View File
@@ -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"
@@ -13,11 +18,10 @@ if __name__ == "__main__":
Plugins.append(Directory)
for Plugin in Plugins:
print("Compiling {0}".format(Plugin))
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"):
SourcePath = os.path.join(Path, File)
IncludePath = os.path.join(Path, "include")