Improve check to prevent overwriting const.py
svn: r20910
This commit is contained in:
parent
b2b4b39d03
commit
a86b39d078
2
setup.py
2
setup.py
@ -244,7 +244,7 @@ def write_const_py(command):
|
|||||||
locale_dir = os.path.join(command.install_data, 'share', 'locale')
|
locale_dir = os.path.join(command.install_data, 'share', 'locale')
|
||||||
else:
|
else:
|
||||||
#in build
|
#in build
|
||||||
if os.access(const_py, os.F_OK):
|
if 'install' in command.distribution.command_obj:
|
||||||
# Prevent overwriting version created during install
|
# Prevent overwriting version created during install
|
||||||
return
|
return
|
||||||
locale_dir = os.path.join(command.build_base, 'mo')
|
locale_dir = os.path.join(command.build_base, 'mo')
|
||||||
|
Loading…
Reference in New Issue
Block a user