To me, it seems better for the main program to supply the configuration options to the module, rather than the module fetching them directly. At the very least, the main program should specify the file name of the configuration file. If you don't, the module's reusability is limited because it's forced to use a single set of configuration options.