We are trying to implement a system that checks the version of the
application against a version number stored in the database.  We don't
want the app and the db don't become out of sync.

We have tried setting a __version__ variable in the top most module,
however, it seems that this is not accessible for the modules that are
subsequently imported.  There are a several locations in the app where
we want to do the version check, but we would like to have one place
to set the version number, namely the top level module.

We have thought of creating a Version class and passing it around, but
aren't really keen on that idea.

Any suggestions/ideas would be helpful.


NOTE: the app is developed in wxPython.

g.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to