I do most of my development on two different machines, one a desktop
running Ubuntu, the other a laptop running OS X. This means that my
SQLite database ends up in two different locations depending on which
machine I'm working on: /home/rmunn/projects/... on Ubuntu, or
/Users/rmunn/projects/... on OS X. This makes specifying the full path
for the sqlobject.dburi configuration variable a little tricky, as the
full path varies from moment to moment depending on which machine I'm
sitting in front of. I don't want to clutter up my SVN repository logs
with dozens of meaningless dev.cfg changes; what I really want is a
way to access pkg_resources.resource_filename() from within dev.cfg,
so that I can just bundle a "data.db" file with my project egg.

I could override the sqlobject.dburi value from my code instead of
from inside dev.cfg. The problem with this approach, however, is that
tg-admin code reads dev.cfg to find the database location, which means
CatWalk (among other things) will fail to find my database, which is
annoying.

I just want to check out my code on any of my development machines --
Linux, Mac, or Windows -- and have it "just work". Anyone else facing
this problem? What did you come up with?

--
Robin Munn
[EMAIL PROTECTED]
GPG key 0xD6497014

Reply via email to