On 24/05/10 14:45, Paul McNett wrote:
> On 5/24/10 10:22 AM, Carey Gagnon wrote:
>> Thanks to much help from Adrian I was able to pull data from the database
>> under Linux no problem, with a call from my ui/FrmReportTimeSummary.py file
>> to my db/getTimeSummaryDataSet.py file (for a report). Under Windows XP home
>> (work computer) it's a whole other issue.
>>
>> Here's the content of my getTimeSummaryDataSet.py:
>>
>> <code>
>>
>> #-*- coding: utf-8 -*-
>>
>> import datetime
>> import decimal
>> import dabo
>>
>> def getTimeSummaryDataSet():
>>
>> import sqlite3
>> conn=sqlite3.connect('C:\path\to\database\file')
>
> Try this:
>
> import sqlite3.dbapi2 as sqlite
> conn = sqlite.connect('c:\\\\path\\to\\database\\file')
or just try : conn = sqlite.connect('c/path/to/database/file')
which is compatible with all platforms (I understand it works in w$ too,
just check it)
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]