diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-08-30 13:11:58 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-08-30 13:11:58 -0300 |
commit | a516b3b3de058560a1820f4cbd3d579f87356bd2 (patch) | |
tree | a4d3b7a9d8694e1db2f1ea10c84945391c1c6bde | |
parent | daa5d0ad2a6220b08e836540d641d1419697a093 (diff) | |
download | renpy-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.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) |