Changeset 25684 for issm/trunk-jpl/src/m/dev
- Timestamp:
- 10/13/20 12:04:18 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/dev/devpath.py
r25198 r25684 10 10 if ISSM_DIR is None: 11 11 raise NameError('"ISSM_DIR" environment variable is empty! You should define ISSM_DIR in your .cshrc or .bashrc!') 12 13 # NOTE: Now having user install netcdf4 via pip14 #15 # #Get paths to locally installed Python libraries16 # tpls = [17 # 'cftime', # Needed for netCDF418 # 'netCDF4'19 # ]20 # for tpl in os.listdir(ISSM_DIR + '/externalpackages'):21 # tpl_path = ISSM_DIR + '/externalpackages/' + tpl22 # for dirpath, dirnames, filenames in os.walk(tpl_path):23 # install_lib_path = dirpath + '/install/lib'24 # for dirpath, dirnames, filenames in os.walk(install_lib_path):25 # for dirname in dirnames:26 # if dirname in tpls:27 # dir = dirpath + '/' + dirname28 # for file in os.listdir(dir):29 # if file.find(".py") != -1:30 # if file.find(".pyc") == -1:31 # if dirpath not in sys.path:32 # sys.path.append(dirpath)33 12 34 13 #Go through src/m and append any directory that contains a *.py file to PATH
Note:
See TracChangeset
for help on using the changeset viewer.