twitter - Using variables defined in main python script in imported script -
i'm writing automated internet speed testing program , i've setup secondary script, config.py, make simpler user edit configuration.
the program can send tweets when internet speed results falls below point , want give users ability edit tweet. user wil want include results in tweet defined in script within config.py called.
how can use variables main script in config.py?
edit: should've mentioned variables in main script in functions.
you can from main_script import variable
if variables not encapsulated functions.
Comments
Post a Comment