python import local module and use working variable code example
Example: create a python file and import it as library in other file
# Script file: my_script.py
import my_module
my_module.hello_printer()
print("Creator:", my_module.name)
# Script file: my_script.py
import my_module
my_module.hello_printer()
print("Creator:", my_module.name)