From: Noel O'B. <no...@ca...> - 2006-05-21 14:51:35
|
On Fri, 2006-05-19 at 13:31 -0700, Adam Tenderholt wrote: > I see that the __init__.py file changed because of some weird > circular importing problems, and that we can no longer use from > cclib.parser import ADF or whatever. What if the init file was > changed as follows? > > from adfparser import ADF > from gaussianparser import Gaussian > .... > > def guesser(filename): > .... > your routines > ..... > > > I think if it's changed this way, we could still do the from > cclib.parser import whatever, and also from cclib.parser import > guesser. Do you think this is worth looking into? (I pass it to you > because I'm not an __init__.py magic person.) I've added the 'guesser' to __init__.py. It's called guesstype(filename). From an example of usage, check out test/testauto.py. > Adam > > > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > cclib-devel mailing list > ccl...@li... > https://lists.sourceforge.net/lists/listinfo/cclib-devel |