From c1c17b16ebb0c3d232f2e79d49feaeced58717f9 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Sat, 21 Dec 2019 05:27:37 +0100 Subject: [PATCH] Revert "version 0.0.0" This reverts commit 27a7d0028dd79b2fcc7a6edee8b422c66fb7b332 --- env.bat | 3 --- opus-nt.py | 7 ------- scripts/api/main.py | 24 ------------------------ scripts/hello.py | 1 - scripts/main.py | 35 ----------------------------------- 5 files changed, 70 deletions(-) delete mode 100644 env.bat delete mode 100644 opus-nt.py delete mode 100644 scripts/api/main.py delete mode 100644 scripts/hello.py delete mode 100644 scripts/main.py diff --git a/env.bat b/env.bat deleted file mode 100644 index 20ee560..0000000 --- a/env.bat +++ /dev/null @@ -1,3 +0,0 @@ -cd /d %~dp0 -set path=%path%;%cd%\bin\python -cmd \ No newline at end of file diff --git a/opus-nt.py b/opus-nt.py deleted file mode 100644 index b34a52b..0000000 --- a/opus-nt.py +++ /dev/null @@ -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()) \ No newline at end of file diff --git a/scripts/api/main.py b/scripts/api/main.py deleted file mode 100644 index e9567cb..0000000 --- a/scripts/api/main.py +++ /dev/null @@ -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 \ No newline at end of file diff --git a/scripts/hello.py b/scripts/hello.py deleted file mode 100644 index fbda233..0000000 --- a/scripts/hello.py +++ /dev/null @@ -1 +0,0 @@ -opus.output("welcome to " +opus.version.string+ "!\n") \ No newline at end of file diff --git a/scripts/main.py b/scripts/main.py deleted file mode 100644 index 23a6f7e..0000000 --- a/scripts/main.py +++ /dev/null @@ -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")) \ No newline at end of file