IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 11, 2006, 10:59:49 AM (20 years ago)
Author:
Paul Price
Message:

Getting rid of WORKDIR completely.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/pmConfig.c

    r10583 r10623  
    44 *  @author EAM (IfA)
    55 *
    6  *  @version $Revision: 1.67 $ $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 $
    88 *
    99 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4242    psFree(config->arguments);
    4343    psFree(config->database);
    44     psFree(config->workdir);
    4544}
    4645
     
    6261    config->argv = argv;
    6362    config->defaultRecipe = NULL;
    64     config->workdir = NULL;
    6563
    6664    // the file structure is used to carry pmFPAfiles
     
    389387    }
    390388
    391     // Get the working directory
    392     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 
    399389    // define the config-file search path (configPath).  Ensure that
    400390    // it contains the directory where we found the config file in
     
    892882    // substitute neb://name with matched nebulous name
    893883
    894     #if 0
    895     // 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     #endif
    903 
    904884    return newName;
    905885}
Note: See TracChangeset for help on using the changeset viewer.