For example I have a variable config
in config.py
. I want to use the variable config
in main.py
. And the config.py
must be pass to main.py
through command line. like follows:
python ./main.py ./config.py
I know in lua
I can use dofile
function. How can I do this in Python
Fixed by Dynamic module import in Python