Re: [Pydev-users] What is the difference between a 'source folder' and a folder in Pydev
Brought to you by:
fabioz
From: Fabio Z. <fa...@gm...> - 2007-02-17 11:29:06
|
On 2/16/07, Don Taylor <nos...@gm...> wrote: > > Fabio: > > The new command lets you create either a source folder or a folder but I > don't understand what is special about a source folder. The source folder is special because it is the folder that will be added to your pythonpath. Is there any reason that I should not create folders instead of source > folders. Regular folders have more options (eg. links) You can create a regular folder with a link and later set that folder as your source folder -- so that it enters in the pythonpath (but pydev currently only supports source-folders as link folders... other link-folders beneath your structure will not be treated correctly for code-completion, analysis, etc). The same is true of files vs. Pydev modules. Is there any reason not to > simply create a file with a .py extension instead of using create Pydev > Module. Again, files have more options (eg. links) than modules. > No real reasons... the only difference is that it will make sure that you can only create things inside a pydev source folder (and you don't have to put the .py extension) -- because files outside of a source folder will not enter the pythonpath, and will not be part of a code-completion or analysis. Cheers, Fabio |