Revert "utils/get-developers: make it callable from elsewhere than the toplevel direc...
authorPeter Korsgaard <peter@korsgaard.com>
Thu, 3 Jan 2019 10:56:55 +0000 (11:56 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 4 Jan 2019 12:23:33 +0000 (13:23 +0100)
This reverts commit 62d5558f76a790d1c1b3a1834f1736dc86b6e34f.

This actually does not work, as patches contain paths relative to the
toplevel directory as well.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
utils/get-developers
utils/getdeveloperlib.py

index c8879388591d0137ab87866eeffcf6cdd37147b4..ce882e6699a72795b16309eba0d1a77c874a8b98 100755 (executable)
@@ -24,9 +24,7 @@ def parse_args():
 
 
 def __main__():
-    # DEVELOPERS is one level up from here
-    devs_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..')
-    devs = getdeveloperlib.parse_developers(devs_dir)
+    devs = getdeveloperlib.parse_developers()
     if devs is None:
         sys.exit(1)
     args = parse_args()
@@ -52,7 +50,7 @@ def __main__():
 
     # Handle the check action
     if args.check:
-        files = getdeveloperlib.check_developers(devs, devs_dir)
+        files = getdeveloperlib.check_developers(devs)
         for f in files:
             print(f)
 
index 84665520c62fbd16945f7abfe99e657400aa8d52..2c8d47758329440b006a485b4d67693c1211d5d2 100644 (file)
@@ -158,8 +158,6 @@ def parse_developers(basepath=None):
     linen = 0
     if basepath is None:
         basepath = os.getcwd()
-    else:
-        basepath = os.path.abspath(basepath)
     with open(os.path.join(basepath, "DEVELOPERS"), "r") as f:
         files = []
         name = None