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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -