diff options
Diffstat (limited to 'rparse.py')
-rw-r--r-- | rparse.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rparse.py b/rparse.py new file mode 100644 index 0000000..2df997e --- /dev/null +++ b/rparse.py @@ -0,0 +1,9 @@ +import os, subprocess + +def fm(f): + return os.getcwd()+"/"+f + +for f in os.listdir(os.getcwd()): + subprocess.run("mv %s %s" % (fm(f), fm(f.replace(".rpy", ".py"))), shell=True) + +subprocess.run("ls %s" % os.getcwd(), shell=True) |