I have a luigi.cfg file that has this inside it
[GlobalParamters]
exportpath: /foo/bar/baz
Then I have my luigi pipeline:
import luigi
class GlobalParamters(luigi.Task):
exportpath = luigi.Parameter(default=None, is_global=True)
class FooTask(luigi.Task)
exportpath = GlobalParameters.exportpath.value
# ... rest of task
if __name__ == "__main__":
luigi.run()
The issue here -- my luigi.cfg never gets read - and exportpath in FooTask is equal to None. I cannot find good examples outside the docs about how I am supposed to interact with my .cfg file -- my reading of it [
http://luigi.readthedocs.org/en/latest/configuration.html] made me think that this should "just work". But do I have to explicitly parse the config?
Confused -- would love an example.