Changeset 10623 for trunk/psModules/src/config/pmConfig.c
- Timestamp:
- Dec 11, 2006, 10:59:49 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/config/pmConfig.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/config/pmConfig.c
r10583 r10623 4 4 * @author EAM (IfA) 5 5 * 6 * @version $Revision: 1.6 7$ $Name: not supported by cvs2svn $7 * @date $Date: 2006-12- 08 23:47:04$6 * @version $Revision: 1.68 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2006-12-11 20:59:48 $ 8 8 * 9 9 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 42 42 psFree(config->arguments); 43 43 psFree(config->database); 44 psFree(config->workdir);45 44 } 46 45 … … 62 61 config->argv = argv; 63 62 config->defaultRecipe = NULL; 64 config->workdir = NULL;65 63 66 64 // the file structure is used to carry pmFPAfiles … … 389 387 } 390 388 391 // Get the working directory392 config->workdir = psMemIncrRefCounter(psMetadataLookupStr(NULL, config->site, "WORKDIR"));393 if (!config->workdir) {394 psWarning("WORKDIR is not set in the site configuration\n");395 } else {396 config->workdir = resolveEnvVar(config->workdir);397 }398 399 389 // define the config-file search path (configPath). Ensure that 400 390 // it contains the directory where we found the config file in … … 892 882 // substitute neb://name with matched nebulous name 893 883 894 #if 0895 // if we still have a relative path, prepend WORKDIR:896 if (newName[0] != '/') {897 char *workdir = psMetadataLookupStr (NULL, config->site, "WORKDIR");898 if (workdir) {899 psStringPrepend (&newName, "%s/", workdir);900 }901 }902 #endif903 904 884 return newName; 905 885 }
Note:
See TracChangeset
for help on using the changeset viewer.
