[sqlalchemy] packages, modules and double imports - oh my!

2011-10-03 Thread Chris Withers
Hi All, The attached package gives that smallest possible example of problems I'm hitting with some SQLAlchemy declarative classes. In short, I want to be able to do: python -m pack.module and have if the __name__=='__main__' block spit out the SQL to create the tables necessary for the

Re: [sqlalchemy] packages, modules and double imports - oh my!

2011-10-03 Thread Michael Bayer
ive no idea what __main__.py is either ? where's the SQLAlchemy exceptions here ? (keeping in mind i havent yet gone through all the steps to download a file...untar it...figure out what you're trying to do...) On Oct 3, 2011, at 6:11 AM, Chris Withers wrote: Hi All, The attached

Re: [sqlalchemy] packages, modules and double imports - oh my!

2011-10-03 Thread Chris Withers
On 03/10/2011 15:15, Michael Bayer wrote: ive no idea what __main__.py is either ? where's the SQLAlchemy exceptions here ? (keeping in mind i havent yet gone through all the steps to download a file...untar it...figure out what you're trying to do...) The attached .tgz simplifies the

Re: [sqlalchemy] packages, modules and double imports - oh my!

2011-10-03 Thread Simon King
On Mon, Oct 3, 2011 at 4:24 PM, Chris Withers ch...@simplistix.co.ukwrote: On 03/10/2011 15:15, Michael Bayer wrote: ive no idea what __main__.py is either ? where's the SQLAlchemy exceptions here ? (keeping in mind i havent yet gone through all the steps to download a file...untar