summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-10-04 16:31:39 +0000
committerng0 <ng0@n0.is>2019-10-04 16:31:39 +0000
commit10007a30586ff20fd0070beb78c565229c6badc1 (patch)
treef674dfd7744234624b0ed91ef3f953789f72fb68
parentb00d5f298c2d397f6beceb1a3f6fe351f2280c32 (diff)
downloadbuild-common-10007a30586ff20fd0070beb78c565229c6badc1.tar.gz
build-common-10007a30586ff20fd0070beb78c565229c6badc1.tar.bz2
build-common-10007a30586ff20fd0070beb78c565229c6badc1.zip
fix prefix.
-rw-r--r--configure.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.py b/configure.py
index dc538e9..b0849db 100644
--- a/configure.py
+++ b/configure.py
@@ -126,13 +126,15 @@ def _read_prefix():
myprefix = p_myprefix
elif args.prefix:
myprefix = args.prefix
+ else:
+ myprefix = parser.get_default('prefix')
if args.yarn is not None:
yarnexe = args.yarn
else:
yarnexe = str(_tool_yarn())
if 'DEBUG' in os.environ:
logger.debug('%s', repr(myprefix))
- if args.prefix and os.path.isdir(myprefix) is True:
+ if os.path.isdir(myprefix) is True:
return [myprefix, yarnexe];
def main():