Bruno Desthuilliers wrote:
> [EMAIL PROTECTED] a écrit :
> > I think I have an answer to my own question. In the
> > WindowsComponents/__init__.py file, I have the following, that feels
> > like a better answer for the problem. Is there a better answer than
> > this?
> >
> > import os, sys
> > s
I think I have an answer to my own question. In the
WindowsComponents/__init__.py file, I have the following, that feels
like a better answer for the problem. Is there a better answer than
this?
import os, sys
sys.path.append(os.path.join(os.getcwd(), 'Common'))
--ERick
--
http://mail.python
I have a package directory structure as follows
root-
|
Common (contains __init__.py file)
WindowsComponents (contains __init__.py file)
...
I would like modules in the WindowsComponents directory to be able to
import some modules from the Common directory. In my first pass, I wa
Peter Hansen wrote:
> [EMAIL PROTECTED] wrote:
> > In Martinelli's Nutshell book in the Exceptions chapter there is an
> > example of a custom exception class (pg.112) that I am trying to
> > implement without success. The custom exception class example
pulls
> > sys.exc_info() into an attribute
In Martinelli's Nutshell book in the Exceptions chapter there is an
example of a custom exception class (pg.112) that I am trying to
implement without success. The custom exception class example pulls
sys.exc_info() into an attribute and I am assuming that the attribute
would then contain the rais