35 lines
900 B
Python
35 lines
900 B
Python
import sys
|
|
|
|
pJoin = os.path.join
|
|
|
|
opus.version = Munch()
|
|
opus.version.distro = "opus-nt"
|
|
opus.version.major = 0
|
|
opus.version.median = 0
|
|
opus.version.minor = 0
|
|
opus.version.state = "dev"
|
|
opus.version.string = \
|
|
opus.version.distro + " " +\
|
|
str(opus.version.major) + "." +\
|
|
str(opus.version.median) + "." +\
|
|
str(opus.version.minor) + " " +\
|
|
opus.version.state
|
|
|
|
opus.path = Munch()
|
|
opus.path.main = os.path.dirname(os.path.realpath(__file__))
|
|
opus.path.api = pJoin(opus.path.main,"scripts","api")
|
|
opus.path.tweaks = pJoin(opus.path.main,"scripts","tweaks")
|
|
opus.path.target = sys.argv[1]
|
|
opus.verbosity = 1
|
|
|
|
with open(pJoin(opus.path.main,"scripts","api","main.py")) as script:
|
|
exec(script.read())
|
|
|
|
if opus.verbosity > 0:
|
|
opus.output("-- paths --")
|
|
for path in opus.path:
|
|
opus.output(path + ": " +opus.path[path])
|
|
|
|
opus.output("")
|
|
|
|
opus.execPy(pJoin(opus.path.main,"scripts","hello.py")) |