Re: [sabayon] sabayon imports



Hi,
	I think the deal is that in any of the "main scripts" - i.e. the
various entry points like sabayon, sabayon-apply, sabayon-monitor etc.
we do

  from sabayon import foo

	but a loaded module can then reference any other module in the same
directory ... I think the module's own directory is implicitly appended
to sys.path or something (forgotten the details)

On Mon, 2005-06-13 at 17:33 -0400, John Dennis wrote:

> [jdennis chickadee sabayon]$ sabayon Traceback (most recent call last):
>   File "/usr/local/sbin/sabayon", line 42, in ?
>     from sabayon import profilesdialog
>   File "/usr/lib/python2.4/site-packages/sabayon/profilesdialog.py",
> line 33, in ?
>     import sessionwindow
>   File "/usr/lib/python2.4/site-packages/sabayon/sessionwindow.py", line
> 23, in ?
>     import protosession
> ImportError: No module named protosession

	Are you sure protosession.py is installed ? Its definitely working fine
here ...

Cheers,
Mark.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]