opus-nt/scripts/api/main.py

24 lines
480 B
Python
Raw Normal View History

2019-12-21 04:19:06 +00:00
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