IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13231


Ignore:
Timestamp:
May 3, 2007, 5:32:38 PM (19 years ago)
Author:
Paul Price
Message:

Adding support for URIs in input/output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppNorm/src/ppNormCalc.c

    r10441 r13231  
    3838
    3939    if (argc >= 2) {
    40         inFile = fopen(argv[1], "r");
     40        psString resolved = pmConfigConvertFilename(argv[1], config, false); // Resolved filename
     41        inFile = fopen(resolved, "r");
    4142        if (!inFile) {
    42             psError(PS_ERR_IO, true, "Unable to open input file: %s\n\n", argv[1]);
     43            psError(PS_ERR_IO, true, "Unable to open input file: %s\n\n", resolved);
     44            psFree(resolved);
    4345            helpAndDie(argv[0]);
    4446        }
     47        psFree(resolved);
    4548    }
    4649    if (argc == 3) {
    47         outFile = fopen(argv[2], "w");
     50        psString resolved = pmConfigConvertFilename(argv[2], config, true); // Resolved filename
     51        outFile = fopen(resolved, "w");
    4852        if (!outFile) {
    49             psError(PS_ERR_IO, true, "Unable to open output file: %s\n\n", argv[2]);
     53            psError(PS_ERR_IO, true, "Unable to open output file: %s\n\n", resolved);
     54            psFree(resolved);
    5055            helpAndDie(argv[0]);
    5156        }
     57        psFree(resolved);
    5258    }
    5359
Note: See TracChangeset for help on using the changeset viewer.