Merge branch 'revert-27a7d002' into 'master'
Revert "version 0.0.0" See merge request Fierelier/opus-nt!1
This commit is contained in:
commit
9d5b4ccd41
@ -1,7 +0,0 @@
|
||||
import os
|
||||
from munch import *
|
||||
opus = Munch()
|
||||
opus._mainScript = False
|
||||
|
||||
with open(os.path.join(os.path.dirname(os.path.realpath(__file__)),"scripts","main.py")) as opus._mainScript:
|
||||
exec(opus._mainScript.read())
|
@ -1,24 +0,0 @@
|
||||
def _func(msg,verbosity = 0):
|
||||
if opus.verbosity > verbosity - 1:
|
||||
print(msg)
|
||||
opus.output = _func
|
||||
|
||||
def _func(_scriptPath):
|
||||
opus.output("executing: " +_scriptPath,1)
|
||||
|
||||
_return = True
|
||||
with open(_scriptPath) as _scriptFile:
|
||||
exec(_scriptFile.read())
|
||||
|
||||
return _return
|
||||
opus.execPy = _func
|
||||
|
||||
def _func(_scriptPath):
|
||||
opus.output("executing: " +_scriptPath,1)
|
||||
|
||||
_return = True
|
||||
with open(_scriptPath) as _scriptFile:
|
||||
exec(_scriptFile.read())
|
||||
|
||||
return _return
|
||||
opus.execPy = _func
|
@ -1 +0,0 @@
|
||||
opus.output("welcome to " +opus.version.string+ "!\n")
|
@ -1,35 +0,0 @@
|
||||
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"))
|
Loading…
Reference in New Issue
Block a user