Avoid command line parsing error in getprefix()

Several setup command line options like --help, raise an AttributeError
exception --> just pass as in that case command line options are not
useful to determine prefix.
This commit is contained in:
Uggla
2016-03-04 14:39:05 +01:00
parent 23d2b09562
commit 6d3beeb823

View File

@@ -151,7 +151,7 @@ class DataFilesHelper():
dist.parse_config_files()
try:
dist.parse_command_line()
except distutils.errors.DistutilsArgError:
except (distutils.errors.DistutilsArgError, AttributeError):
pass
command = dist.get_command_obj('install')
command.ensure_finalized()