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