diff --git a/scripts/download_change_logs_from_transifex.py b/scripts/download_change_logs_from_transifex.py index 06303da10..53f15fb10 100644 --- a/scripts/download_change_logs_from_transifex.py +++ b/scripts/download_change_logs_from_transifex.py @@ -126,12 +126,9 @@ def releaseNotesPath(locale): # writes text to a file. def writeToFile(filename, text): - directory = os.path.dirname(filename) - # check if the directory exists, if not, create it - if not os.path.exists(directory) and directory != '': - os.makedirs(directory) - with open(filename, "w") as f: - f.write(text) + f = open(filename, "w") + f.write(text) + f.close() def updateChangeLogs(searchText, languageURL, languageFolders): changeLogsText = fetchChangeLogsText(languageURL) @@ -150,7 +147,7 @@ def updateChangeLogs(searchText, languageURL, languageFolders): searchText = searchText.rsplit(".", periodCount - 1)[0] languagesInformation = [ - { "name": "English", "transifixCode": "l:en", "fastlaneMetadataFolders": ["en-US", "en-UK"] }, + { "name": "English", "transifixCode": "l:en", "fastlaneMetadataFolders": ["en-US"] }, { "name": "Spanish", "transifixCode": "l:es", "fastlaneMetadataFolders": ["es-ES", "es-MX"] }, { "name": "Arabic", "transifixCode": "l:ar", "fastlaneMetadataFolders": ["ar-SA"] }, { "name": "French", "transifixCode": "l:fr", "fastlaneMetadataFolders": ["fr-CA", "fr-FR"] },