IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13268


Ignore:
Timestamp:
May 4, 2007, 3:37:11 PM (19 years ago)
Author:
Paul Price
Message:

Adding filename conversion for statistics, to allow Nebulous.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/pswarpDataSave.c

    r13104 r13268  
    2626    FILE *statsFile = NULL;             // File stream for statistics
    2727    if (mdok && statsName && strlen(statsName) > 0) {
    28         statsFile = fopen(statsName, "w");
     28        psString resolved = pmConfigConvertFilename(statsName, config, true);
     29        statsFile = fopen(resolved, "w");
    2930        if (!statsFile) {
    30             psError(PS_ERR_IO, true, "Unable to open statistics file %s for writing.\n", statsName);
     31            psError(PS_ERR_IO, true, "Unable to open statistics file %s for writing.\n", resolved);
     32            psFree(resolved);
    3133            return false;
    3234        }
     35        psFree(resolved);
    3336        stats = psMetadataAlloc();
    3437    }
Note: See TracChangeset for help on using the changeset viewer.