Re: Newbie question about importing modules.

2010-12-22 Thread cronoklee
On Wed, Dec 22, 2010 at 7:57 PM, Tim Roberts wrote: cronoklee wrote: > > Thanks Tim - You've certainly shed some light. I presume the PIL > installer is setup.py and installation is simple a case of running it? Yes: python setup.py install That scheme is called "distutils". Since it became p

Re: Newbie question about importing modules.

2010-12-18 Thread Tim Roberts
cronoklee wrote: > >Hey thanks for the help fellas. The links were helpful and the pyExe >program looks great. I might well end up using this. > >I'm still a little confused as to how the directory structure works. PIL >(http://www.pythonware.com/products/pil/#pil117), for example comes packed >in

Re: Newbie question about importing modules.

2010-12-17 Thread cronoklee
Hey thanks for the help fellas. The links were helpful and the pyExe program looks great. I might well end up using this. I'm still a little confused as to how the directory structure works. PIL (http://www.pythonware.com/products/pil/#pil117), for example comes packed in a folder called Imagin

Re: Newbie question about importing modules.

2010-12-17 Thread shearichard
On Dec 17, 4:42 pm, cronoklee wrote: > Hi > I'm starting my first python project but I'm having trouble getting > off the ground. > I've read all I can find about relative and absolute import paths but > it's just not making sense to me... There seems to be around ten > different ways to import a

Re: Newbie question about importing modules.

2010-12-17 Thread Tim Roberts
cronoklee wrote: > >I'm starting my first python project but I'm having trouble getting >off the ground. >I've read all I can find about relative and absolute import paths but >it's just not making sense to me... There seems to be around ten >different ways to import a script. That's not really t

Re: Newbie question about importing modules.

2010-12-16 Thread Jony Zhu
Hi, cronoklee maybe you should check every module directory you want to import to see if there is a __init__.py in it? missing a __init__.py file would cause error when you try to import the directory as a module. 在 Fri, 17 Dec 2010 11:42:48 +0800,cronoklee 写道: Hi I'm starting my first p

Newbie question about importing modules.

2010-12-16 Thread cronoklee
Hi I'm starting my first python project but I'm having trouble getting off the ground. I've read all I can find about relative and absolute import paths but it's just not making sense to me... There seems to be around ten different ways to import a script. I need my project to be portable so I can