Changeset 9904
- Timestamp:
- Nov 7, 2006, 4:10:07 PM (20 years ago)
- Location:
- trunk/psModules/src/config
- Files:
-
- 2 edited
-
pmConfig.c (modified) (4 diffs)
-
pmConfig.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/config/pmConfig.c
r9894 r9904 4 4 * @author EAM (IfA) 5 5 * 6 * @version $Revision: 1.5 2$ $Name: not supported by cvs2svn $7 * @date $Date: 2006-11-0 7 22:30:33$6 * @version $Revision: 1.53 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2006-11-08 02:10:07 $ 8 8 * 9 9 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 41 41 psFree(config->arguments); 42 42 psFree(config->database); 43 psFree(config->workdir); 43 44 } 44 45 … … 59 60 config->argc = argc; 60 61 config->argv = argv; 62 config->workdir = NULL; 61 63 62 64 // the file structure is used to carry pmFPAfiles … … 381 383 } 382 384 385 // Get the working directory 386 config->workdir = psMemIncrRefCounter(psMetadataLookupStr(NULL, config->site, "WORKDIR")); 387 if (!config->workdir) { 388 psWarning("WORKDIR is not set in the site configuration\n"); 389 } else { 390 config->workdir = resolveEnvVar(config->workdir); 391 } 392 383 393 // define the config-file search path (configPath). Ensure that 384 394 // it contains the directory where we found the config file in -
trunk/psModules/src/config/pmConfig.h
r9679 r9904 9 9 /// @author Eugene Magnier, IfA 10 10 /// 11 /// @version $Revision: 1.1 7$ $Name: not supported by cvs2svn $12 /// @date $Date: 2006-1 0-20 23:03:35$11 /// @version $Revision: 1.18 $ $Name: not supported by cvs2svn $ 12 /// @date $Date: 2006-11-08 02:10:07 $ 13 13 /// 14 14 /// Copyright 2005-2006 Institute for Astronomy, University of Hawaii … … 48 48 psMetadata *arguments; ///< Processed command-line arguments 49 49 psMetadata *files; ///< pmFPAfiles used for analysis 50 psString workdir; ///< Working directory 50 51 psDB *database; ///< Database handle 51 52 int *argc; ///< Number of command-line arguments
Note:
See TracChangeset
for help on using the changeset viewer.
