1050 global cfg, sourceDir, macAppBundlePath |
1050 global cfg, sourceDir, macAppBundlePath |
1051 |
1051 |
1052 apis = [] |
1052 apis = [] |
1053 if installApis: |
1053 if installApis: |
1054 for progLanguage in progLanguages: |
1054 for progLanguage in progLanguages: |
1055 for apiName in glob.glob( |
1055 for apiName in sorted(glob.glob( |
1056 os.path.join(sourceDir, "APIs", progLanguage, "*.api")): |
1056 os.path.join(sourceDir, "APIs", progLanguage, "*.api"))): |
1057 apis.append(os.path.basename(apiName)) |
1057 apis.append(os.path.basename(apiName)) |
1058 if progLanguage == "Python": |
1058 if progLanguage == "Python": |
1059 # treat Python3 API files the same as Python API files |
1059 # treat Python3 API files the same as Python API files |
1060 for apiName in glob.glob( |
1060 for apiName in sorted(glob.glob( |
1061 os.path.join(sourceDir, "APIs", "Python3", "*.api")): |
1061 os.path.join(sourceDir, "APIs", "Python3", "*.api"))): |
1062 apis.append(os.path.basename(apiName)) |
1062 apis.append(os.path.basename(apiName)) |
1063 |
1063 |
1064 fn = 'eric6config.py' |
1064 fn = 'eric6config.py' |
1065 config = ( |
1065 config = ( |
1066 """# -*- coding: utf-8 -*-\n""" |
1066 """# -*- coding: utf-8 -*-\n""" |