927 for name in ['default.e4k', 'default_Mac.e4k']: |
927 for name in ['default.e4k', 'default_Mac.e4k']: |
928 try: |
928 try: |
929 shutilCopy(os.path.join(sourceDir, "others", name), |
929 shutilCopy(os.path.join(sourceDir, "others", name), |
930 cfg['ericOthersDir']) |
930 cfg['ericOthersDir']) |
931 except EnvironmentError: |
931 except EnvironmentError: |
932 print("Could not install '{2}{0}others{0}{1}'.".format( |
932 print("Could not install '{0}'.".format( |
933 os.path.join(sourceDir, "docs", name))) |
933 os.path.join(sourceDir, "others", name))) |
934 |
934 |
935 # install the API file |
935 # install the API file |
936 if installApis: |
936 if installApis: |
937 for progLanguage in progLanguages: |
937 for progLanguage in progLanguages: |
938 apidir = os.path.join(cfg['apidir'], progLanguage.lower()) |
938 apidir = os.path.join(cfg['apidir'], progLanguage.lower()) |
1320 global cfg, macAppBundlePath, configName |
1320 global cfg, macAppBundlePath, configName |
1321 |
1321 |
1322 apis = [] |
1322 apis = [] |
1323 if installApis: |
1323 if installApis: |
1324 for progLanguage in progLanguages: |
1324 for progLanguage in progLanguages: |
1325 for apiName in sorted(glob.glob( |
1325 for apiName in sorted( |
1326 os.path.join(eric6SourceDir, "APIs", progLanguage, "*.api"))): |
1326 glob.glob(os.path.join(eric6SourceDir, "APIs", progLanguage, |
|
1327 "*.api"))): |
1327 apis.append(os.path.basename(apiName)) |
1328 apis.append(os.path.basename(apiName)) |
1328 if progLanguage == "Python": |
1329 if progLanguage == "Python": |
1329 # treat Python3 API files the same as Python API files |
1330 # treat Python3 API files the same as Python API files |
1330 for apiName in sorted(glob.glob( |
1331 for apiName in sorted( |
1331 os.path.join(eric6SourceDir, "APIs", "Python3", "*.api"))): |
1332 glob.glob(os.path.join(eric6SourceDir, "APIs", "Python3", |
|
1333 "*.api"))): |
1332 apis.append(os.path.basename(apiName)) |
1334 apis.append(os.path.basename(apiName)) |
1333 |
1335 |
1334 config = ( |
1336 config = ( |
1335 """# -*- coding: utf-8 -*-\n""" |
1337 """# -*- coding: utf-8 -*-\n""" |
1336 """#\n""" |
1338 """#\n""" |