followup mac orange fix (so we can turn mac nightly update generation on) for Bug 386760 - directory removal with software update. r=khuey

This commit is contained in:
Robert Strong 2011-04-12 13:46:02 -07:00
Родитель 497e7711c2
Коммит 8027207fcc
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -45,6 +45,10 @@ def generate_precomplete():
for the location to enumerate and to create the precomplete file.
"""
root_path = os.getcwd()
# If inside a Mac bundle use the root of the bundle for the path.
if os.path.basename(root_path) == "MacOS":
root_path = os.path.abspath(os.path.join(root_path, '../../'))
rel_file_path_list, rel_dir_path_list = get_build_entries(root_path)
precomplete_file_path = os.path.join(root_path,"precomplete")
# open in binary mode to prevent OS specific line endings.