diff options
Diffstat (limited to 'configure.py')
-rw-r--r-- | configure.py | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/configure.py b/configure.py index 1e813e0d0..3abef380b 100644 --- a/configure.py +++ b/configure.py @@ -44,26 +44,36 @@ def _read_prefix(): return myprefix else: - logger.debug('PREFIX from argv') + # logger.debug('PREFIX from argv') parser = argparse.ArgumentParser() parser.add_argument("-p", "--prefix", type=str, required=True, help='Directory prefix for installation') - logger.debug('parser.parse_args step') + parser.add_argument("-y", + "--yarn", + type=str, + required=True, + help='name of yarn executable') + # logger.debug('parser.parse_args step') args = parser.parse_args() - logger.debug('%s', args) + # logger.debug('%s', args) myprefix = args.prefix + yarnexe = args.yarn # if args.prefix is not None and os.path.isdir(myprefix) is True: if args.prefix and os.path.isdir(myprefix) is True: - return myprefix + return [myprefix, yarnexe]; def main(): - myprefix = str(_read_prefix()) + # mylist = str(_read_prefix()) + mylist = _read_prefix() + myprefix = mylist[0] + yarnexe = mylist[1] f = open('config.mk', 'w+') f.write('# this file is autogenerated by ./configure\n') f.write('prefix=' + myprefix + '\n') + f.write('yarnexe=' + yarnexe + '\n') f.close() |