diff options
-rw-r--r-- | rparse.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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) |