summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)