Browse Source

abs cleanup

Matthew Wildoer 9 months ago
parent
commit
b0b2f37d8a
1 changed files with 3 additions and 2 deletions
  1. 3 2
      configure.py

+ 3 - 2
configure.py

@@ -21,10 +21,11 @@ def main(name: str, debug: bool):
     """
 
     # Common variables
+    repo_root = Path(__file__).parent
     extended_globals = {
         "name": name,
         "caseconverter": caseconverter,
-        "repo_root": Path(__file__).parent,
+        "repo_root": repo_root,
     }
 
     # Load templates
@@ -52,7 +53,7 @@ def main(name: str, debug: bool):
 
     # Remove this script
     if not debug:
-        Path("configure.py").unlink()
+        (repo_root / "configure.py").unlink()
 
 
 if __name__ == "__main__":