Ejemplo n.º 1
0
 def _create_url(self, name):
     with proj.InDir("./" + name):
         with open("urls.py", "a") as newscript:
             newscript.write(url_script(name))
Ejemplo n.º 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)