I'm writing a module and this module reads a configuration file (actually a YAML-file) which is stored in a directory one level down the module. I tried to get at it by using the file path ./one_level_down/config.yml, but that fails as this relative path starts at the location of the script useing the module.
Is there a simple way of pulling in the file_path of the module so I can build an absolute path?
I will still have a problem then with the tests, won't I as they use another directory structure?
CountZero
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
In reply to Handling config-files in Tests (SOLVED) by CountZero
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |