KingKong
01-11-2012, 03:37 AM
This is my folder structure:
PySRL/
pymml/
__init__.py
libsmart.dll
mtypes.py
SMART.py
Includes/
__init__.py
core/
__init__.py
gametab.py
login.py
SMART.py contains one class named Smart. I wish to add all the functions within gametab.py and login.py(more files to come later on) to the class Smart at runtime. Whats the best to do this dynamically?(As in i run another python file which iterates through all the modules inside core)
PySRL/
pymml/
__init__.py
libsmart.dll
mtypes.py
SMART.py
Includes/
__init__.py
core/
__init__.py
gametab.py
login.py
SMART.py contains one class named Smart. I wish to add all the functions within gametab.py and login.py(more files to come later on) to the class Smart at runtime. Whats the best to do this dynamically?(As in i run another python file which iterates through all the modules inside core)