Re: creating package question

2005-11-17 Thread erick_bodine
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

Re: creating package question

2005-11-16 Thread erick_bodine
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

creating package question

2005-11-16 Thread erick_bodine
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

Re: confusion around CustomException example in 'Python in a Nutshell'

2005-03-12 Thread erick_bodine
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

confusion around CustomException example in 'Python in a Nutshell'

2005-03-11 Thread erick_bodine
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