On May 3, 2012, at 8:16 AM, Allan Brooke wrote:
> I have removed Dabo* from dist-packages dir
>
> Created file dabo.path with content
> "/home/allan/"
> and
> /home/allan/ #dabo dir is in /home/allan dir
>
> both files fail to find dabo from import dabo from terminal or idle
>
> I have tried dabo.pth in site-packages & dist-packages.
>
> Normal sudo python setup.py install installs to dist-packages.
>
> Any other ideas
Just one: when you say that the 'dabo' dir is in your home directory,
is that the 'dabo' folder that contains dApp.py? The reason I ask is that there
is potential for confusion in that when you untar the release, you get a 'dabo'
folder which contains setup.py, as well as several subfolders, one of which is
also named 'dabo'. It is this subfolder 'dabo' that is the Python module.
Let's say you untarred into your home folder. You'd have the following
paths:
/home/allan/dabo/
/home/allan/dabo/dabo/
/home/allan/dabo/daboserver/
/home/allan/dabo/demo/
/home/allan/dabo/ide/
... etc.
If this is what you have, then the dabo.pth file should contain
'/home/allan/dabo', since that's the folder that contains the 'dabo' Python
module. An alternative is to not use the .pth file, and instead create a
symlink to the dabo module folder in your dist-packages directory.
Personally, I find having '.../dabo/dabo/...' confusing, so I create a
'projects' folder off my home, and put all the subfolders there.
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message:
http://leafe.com/archives/byMID/[email protected]