View Single Post
Old 01-31-2011, 05:22 AM   PM User | #3
Apothem
Regular Coder

 
Apothem's Avatar
 
Join Date: Mar 2008
Posts: 380
Thanks: 36
Thanked 25 Times in 25 Posts
Apothem is an unknown quantity at this point
So there's no way to import files and have the imported file automatically evaluate its contents? In other words, if I want to import files I must ONLY have functions/classes in the file(s) to be imported? Can variables also be in it as well?

Edit: Also, how would you go about importing files from other directories? Suppose you have the following files:
include/libs.py
conf/main.py
test.py

Lets say you run test.py - how would you import the libs.py and main.py?

Last edited by Apothem; 01-31-2011 at 05:32 AM..
Apothem is offline   Reply With Quote