Re: [Pydev-users] Importing an Existing Package into PyDev
Brought to you by:
fabioz
From: Fabio Z. <fa...@gm...> - 2006-04-25 22:18:35
|
Hi Barry, On 4/25/06, Carroll, Barry <Bar...@ps...> wrote: > > Fabio: > > Thanks for your prompt reply. I did not know about the manual before I > received your post. I have read through it now, but unfortunately I stil= l > don't know how to convert an existing Python package into a PyDev project= . > > My package is named encode. It is part of a (non-PyDev) project named > symgen. The file system hierarchy looks like this: > > J:\My Documents\Projects\symgen > testfiles.py (test case files) > encode\ (the package directory) > __init__.py > codefiles.py (Python source code files) > > (The encode folder is actually a shortcut to J:\My > Documents\python\encode. The python folder is our department's standard > repository for Python development code, and is included in the PYTHONPATH > list by a .pth file in C:\Python23. A bit odd, I know, but it works and = the > details aren't important to the current problem.) > > The first issues I need to solve are: > > 1. Can I turn my symgen folder into a PyDev project folder, > and if so, how? Just create a new project and make the project location as J:\My Documents\Projects\symgen (so you can use it as your source folder) 2. Can I use my existing __init__ file as PyDev's __init__ file, > and, if so how? In the project properties, set the project root to be in the pythonpath. If that does not suit you, please report back. Cheers, Fabio |