summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-08-30 13:11:58 -0300
committerJesusaves <cpntb1@ymail.com>2021-08-30 13:11:58 -0300
commita516b3b3de058560a1820f4cbd3d579f87356bd2 (patch)
treea4d3b7a9d8694e1db2f1ea10c84945391c1c6bde
parentdaa5d0ad2a6220b08e836540d641d1419697a093 (diff)
downloadrenpy-a516b3b3de058560a1820f4cbd3d579f87356bd2.tar.gz
renpy-a516b3b3de058560a1820f4cbd3d579f87356bd2.tar.bz2
renpy-a516b3b3de058560a1820f4cbd3d579f87356bd2.tar.xz
renpy-a516b3b3de058560a1820f4cbd3d579f87356bd2.zip
Obviously `pyflakes` will find only syntax errors -.-
-rw-r--r--rparse.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/rparse.py b/rparse.py
index e6b0113..85fe2c1 100644
--- a/rparse.py
+++ b/rparse.py
@@ -1,9 +1,10 @@
import os, subprocess
def fm(f):
- return os.getcwd()+"/"+f
+ return os.getcwd()+"/debug/"+f
-for f in os.listdir(os.getcwd()):
- subprocess.call("mv %s %s" % (fm(f), fm(f.replace(".rpy", ".py"))), shell=True)
+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)
-subprocess.call("ls %s" % os.getcwd(), shell=True)
+subprocess.call("ls \"%s\"" % os.getcwd()+"/debug", shell=True)