[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Making A Module
On Oct 29, 2007, at 2:27 PM, RR4CLB wrote:
Thanks for all the suggestions. I thought this is the way it
should be done but kept coming up with an error in the import
statement. Kept saying it could not find it. So I had tried placing
it in the main path where Python25 is but it did not work. So I set
it in the site packages folder where all the others are and it did
not work. SO I will have to check again and see what I am doing wrong.
I thought you should remove everything but the def statements
and it is just not finding the file itself. So I will try again and
report what I am doing. Maybe the error is something else besides
the load of the file but I am sure the error was at that point.
Try putting it in the same directory as the script you are running,
that's typically easiest. If it doesn't work (it absolutely should),
try creating a script containing:
import sys
print sys.path
What do you get when you run it? The first entry should be the path
to the directory containing the script.
Also sending us the error traceback you get from your script might
help us.
-Casey