Sorry, I forgot to say that the error is: ValueError: attempted relative import in non-package.
On 2/24/11, Alex Hall <mehg...@gmail.com> wrote: > Hi all, > I am trying to place some common files into a folder so that all files > in other folders can access the common files. That is, the file for a > card class, a deck class, and so on are all in a "common" folder. At > this folder's level are also all folders for games so that all games' > files can simply say > from .common import cards > However, it is not working out that way. Attached is a simple example. > Try running a\common\vars.py and you will get an error, even though > the "a" folder has a __init__.py file in it. > > -- > Have a great day, > Alex (msg sent from GMail website) > mehg...@gmail.com; http://www.facebook.com/mehgcap > -- Have a great day, Alex (msg sent from GMail website) mehg...@gmail.com; http://www.facebook.com/mehgcap _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor