Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

Commit

Permalink
logging path of used lookup.db (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
mschrimpf authored Sep 6, 2019
1 parent 4da72c2 commit fb7f5ef
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion brainio_collection/lookup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import logging
import os

import peewee

_logger = logging.getLogger(__name__)

pwdb = peewee.SqliteDatabase(os.path.join(os.path.dirname(__file__), "lookup.db"))
lookupdb_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "lookup.db"))
_logger.debug(f"Loading database from {lookupdb_path}")
pwdb = peewee.SqliteDatabase(lookupdb_path)

0 comments on commit fb7f5ef

Please sign in to comment.