Re: Question about import and sys.path

2006-11-29 Thread Rob Wolfe
Frank Millman wrote: > One small point. The docs have the following warning - > > "Important: the caller is responsible for closing the file argument, if > it was not None, even when an exception is raised. This is best done > using a try ... finally statement. " > > I have added this to my code.

Re: Question about import and sys.path

2006-11-28 Thread Frank Millman
Rob Wolfe wrote: > Frank Millman wrote: > > Hi all > > > > However, I want the ability to have duplicate program names stored in > > different subdirectories. At the time of selecting the menu option I > > know which company is active, so I know which directory I want to run > > the program from,

Re: Question about import and sys.path

2006-11-28 Thread Rob Wolfe
Frank Millman wrote: > Hi all > > I am writing a business/accounting application. Once a user has logged > in they are presented with a menu. Each menu option has a description > and an associated file name and program name. The file name is the name > of a .py file (impName) and the program name

Question about import and sys.path

2006-11-27 Thread Frank Millman
Hi all I am writing a business/accounting application. Once a user has logged in they are presented with a menu. Each menu option has a description and an associated file name and program name. The file name is the name of a .py file (impName) and the program name is the name of a class in that fi