On May 24, 2010, at 3:08 PM, Ricardo Aráoz wrote:

>> 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)

        You might also try using raw strings, which ignore the 'escape-iness' 
of the backslash:

conn = sqlite.connect(r'c:\\path\to\database\file')


-- Ed Leafe



_______________________________________________
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]

Reply via email to