I am having trouble importing modules in python. Can someone help me so I can do object oriented programmed games.
Importing Modules in Python
Started by LeafieTail, Mar 12 2011 01:34 AM
3 replies to this topic
Sponsor:
#4 Members - Reputation: 1062
Posted 14 March 2011 - 09:05 PM
The most likely reason is that your module is not in the search path.
From the python module docs
When a module named spam is imported, the interpreter searches for a file named spam.py in the current directory, and then in the list of directories specified by the environment variable PYTHONPATH. This has the same syntax as the shell variable PATH, that is, a list of directory names.
if you think programming is like sex, you probably haven't done much of either.-------------- - capn_midnight






