Sample configuration file
Copy the supplied importer.config.example to importer.config in the config folder.
PGHost=localhost PGUser=postgres PGDBName=NLPGImporterTest PGPwd=postgres MyName=NLPG PendingDir=F:\Python\NLPGImporter\Pending CompletedDir=F:\Python\NLPGImporter\Completed ArchiveDir=F:\Python\NLPGImporter\Archive
Note
This file must reside in the config folder.
Setting up the configuration file
PGHost
Substitute localhost for whatever postgres host you wish to connect to.
PGUser
The postgres user who will access the postgres database
PGDBName
The name of the postgres database set up for the NLPG Importer
MyName
Leave as MyName=NLPG
PendingDir
Set this as the path to the Pending folder where files to be imported will be placed
CompletedDir
Set this as the path to the Completed folder where files will be placed once processing is complete.
ArchiveDir
Set this as the path to the Archive folder. Files need to be placed here to serve as a record of which files have been received, and will be used if there is a need to reset the NLPG Importer back to the initial state.