summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-01-28 12:27:41 -0300
committerJesusaves <cpntb1@ymail.com>2022-01-28 12:27:41 -0300
commit1b8d4f5c8b1fe42ec88748136d66404f70c188ff (patch)
treea6f4549898909f67028e84841591ef29bba24c33
parent758d4fa539a1191445b2e37b1e179e671bb7c686 (diff)
downloadrenpy-1b8d4f5c8b1fe42ec88748136d66404f70c188ff.tar.gz
renpy-1b8d4f5c8b1fe42ec88748136d66404f70c188ff.tar.bz2
renpy-1b8d4f5c8b1fe42ec88748136d66404f70c188ff.tar.xz
renpy-1b8d4f5c8b1fe42ec88748136d66404f70c188ff.zip
Remove rparse and add COPYING file
-rw-r--r--COPYING7
-rw-r--r--rparse.py47
2 files changed, 7 insertions, 47 deletions
diff --git a/COPYING b/COPYING
new file mode 100644
index 0000000..f7f7438
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,7 @@
+MIT License
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/rparse.py b/rparse.py
deleted file mode 100644
index 0cdf35b..0000000
--- a/rparse.py
+++ /dev/null
@@ -1,47 +0,0 @@
-import os, subprocess
-
-def fm(f):
- return os.getcwd()+"/debug/"+f
-
-for f in os.listdir(os.getcwd()+"/debug"):
- #print("mv \"%s\" \"%s\"" % (fm(f), fm(f.replace(".rpy", ".py"))))
- #subprocess.call("mv \"%s\" \"%s\"" % (fm(f), fm(f.replace(".rpy", ".py"))), shell=True)
- with open(os.getcwd()+"/debug/"+f, "r") as fp:
- on=False
- ind=""
- lv=0
- ft = open(os.getcwd()+"/debug/"+f+"-sast.py", "w")
- ft.write("""renpy=None; persistent=None; config=None; gui=None; h=None
-def _(arg):
- return arg
-def stdout(arg):
- return arg
-def statusmsg(arg="", arg2=""):
- return arg
-def handle_client(arg="", arg2=""):
- return arg
-def md5check_client(arg="", arg2=""):
- return arg
-def get_path(arg="", arg2=""):
- return arg
-import requests
-""")
- ft.write("if True:\n")
- for l in fp:
- if on:
- if not l.startswith(ind):
- on=False
- continue
- ft.write(l)
- if ind == "":
- for c in l:
- if c == " ":
- ind+=" "
- if "python" in l:
- on=True
- ind=""
- if " $" in l:
- ft.write(" "+l.replace("$", "").lstrip())
- ft.close()
-
-subprocess.call("ls \"%s\"" % os.getcwd()+"/debug", shell=True) # nosec