Mar-21-2024, 01:12 AM
Thank you for the prompt reply. My case is more complicated.
two.py would have a function receiving a parameter which is a variable set in one.py
I tried a few import combinantion, wich failed. I think I will stay with one large script to avoid import.
two.py would have a function receiving a parameter which is a variable set in one.py
I tried a few import combinantion, wich failed. I think I will stay with one large script to avoid import.
(Mar-21-2024, 12:57 AM)menator01 Wrote: You can use the import system
Quick example
one.py
def func(): return 'One.py'two.py
def func(): return 'Two.py'three.py
def func(): return 'Three.py'main.py
import one, two, three print(one.func()) print(two.func()) print(three.func())
Output:One.py Two.py Three.py