예제 #1
0
 def _create_url(self, name):
     with proj.InDir("./" + name):
         with open("urls.py", "a") as newscript:
             newscript.write(url_script(name))
예제 #2
0
 def _create_url(self, name):
     current = os.getcwd()
     os.chdir("./" + name)
     with open("urls.py", "a") as newscript:
         newscript.write(url_script(name))
     os.chdir(current)