I am new to Python and so you will have to try and ignore my noobishness, Sorry.
Expand|Select|Wrap|Line Numbers
- ################################################################################
- # Module: Program Starter
- # Author: Shing
- # Date: 11/03/07
- # Version: Draft 1.0
- '''
- This module provides a starter to all your Python Programs
- '''
- ################################################################################
- # Log:
- # 11/03/07 Shing - File created
- ################################################################################
- Area = Area.py
- SPR = SPR.py
- area = import Area.py
- spr = import SPR.py
- guess = raw_input("Program?")
- if guess == area:
- import Area.py
- elif guess == spr:
- import SPR.py
################################
# area = raw_input("Import area?") This is just some old stuff....
# spr = raw_input("Import spr?")
# if area : import Area.py
# else spr : import SPR.py
################################