Ignore:
Timestamp:
Apr 29, 2008, 7:04:59 AM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
2456db
Parents:
36b128
Message:

configname is also stored in config structure, GetDefaultPath by config::configpath replaced

This stores fragment and affiliated files in same dir as the config, regardless of therein contained paths and is safer and makes the tests work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/molecules.cpp

    r36b128 r7b1cea  
    20932093    status = false;
    20942094  }
    2095   status = status && CheckAdjacencyFileAgainstMolecule(out, configuration->GetDefaultPath(), ListOfAtoms);
     2095  status = status && CheckAdjacencyFileAgainstMolecule(out, configuration->configpath, ListOfAtoms);
    20962096  if (status) {  // NULL entries in ListOfAtoms contain NonMatches
    2097     status = status && ParseKeySetFile(out, configuration->GetDefaultPath(), ListOfAtoms, FragmentList, configuration->GetIsAngstroem());
     2097    status = status && ParseKeySetFile(out, configuration->configpath, ListOfAtoms, FragmentList, configuration->GetIsAngstroem());
    20982098  }
    20992099  Free((void **)&ListOfAtoms, "molecule::FragmentMolecule - **ListOfAtoms");
     
    21022102  if (!status) {
    21032103    // === store Adjacency file ===
    2104     StoreAdjacencyToFile(out, configuration->GetDefaultPath());
     2104    StoreAdjacencyToFile(out, configuration->configpath);
    21052105
    21062106    // === first perform a DFS analysis to gather info on cyclic structure and a list of disconnected subgraphs ===
Note: See TracChangeset for help on using the changeset viewer.