Re: another problem with modules

2011-02-17 Thread MRAB
On 17/02/2011 17:11, Tim Hanson wrote: Okay, I solved my problem with Python finding modules: I put the following into a file in my home directory, on the good advice of Andrea Crotti: import sys sys.path.append('/home/foo/mypath' I named the file "~/pypath.py", so now, in idle: import pypath

Re: another problem with modules

2011-02-17 Thread Robert Kern
On 2/17/11 11:11 AM, Tim Hanson wrote: import pypath import intersect #the name of a file that contains the above short function. intersect('spam','spmmer') Traceback (most recent call last): File "", line 1, in intersect('spam','spmmer') TypeError: 'module' object is not callable H

another problem with modules

2011-02-17 Thread Tim Hanson
Okay, I solved my problem with Python finding modules: I put the following into a file in my home directory, on the good advice of Andrea Crotti: import sys sys.path.append('/home/foo/mypath' I named the file "~/pypath.py", so now, in idle: import pypath No errors. I'm still getting a little