December 2018
— It does not work on my phone.
app main.py pack1 __init__.py pack1_1 __init__.py module1_1a.py
import pack1.pack1_1.module1_1a# sys.modulesprint(“pack1.pack1_1.module1_1a” in sys.modules) # Trueprint(“pack1.pack1_1” in sys.modules) # Trueprint(“pack1” in sys.modules) # True# globals()print(“pack1.pack1_1.module1_1a” in globals()) # Falseprint(“pack1.pack1_1” in globals()) # Falseprint(“pack1” in globals()) # True
— Just helping ._.
— Thank you
— Sry
— Got to know .
— +
— Hello.How can i run python2 intepreter inside a python3 script?
— I guess with os.system?
— Why on earth
— Cause i wanted to know?
— Just close the script in a function, import it and execute that function