On 11/3/05, Jon <[EMAIL PROTECTED]> wrote:
>
> Is there any way to use SQLite without having to specify an absolute
> path to the file? I'd prefer to be able to specify it relative to the
> root project directory.
Even if there was a way to do it syntactically, this would be tricky
come deployment time. The code will be installed in one place, and who
knows where the start script will run from. That was something the
CherryPy folks struggled with when it came to static files.
Anders Pearson's suggestion would work fine. You can put that in your
startup script in the section where it detects that you're in
development mode and then do
cherrypy.config.update({'global': { 'sqlobject.dburi' : db_path}})
Kevin
--
Kevin Dangoor
Author of the Zesty News RSS newsreader
email: [EMAIL PROTECTED]
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com