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>
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()
# 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)
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