Skip to content

Commit

Permalink
Additional logging output to track down issue with finding the .sql file
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Smith committed Oct 16, 2014
1 parent 60d4e4f commit 93998f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/buildcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def buildCache(dbPath, sqlPath, pricesPath, debug=0):
tempDB = sqlite3.connect(':memory:')

# Read the SQL script so we are ready to populate structure, etc.
if debug: print("* Executing SQL Script '%s'" % sqlPath)
if debug: print("* Executing SQL Script '{}' from '{}'".format(sqlPath, os.getcwd()))
with sqlPath.open() as sqlFile:
sqlScript = sqlFile.read()
tempDB.executescript(sqlScript)
Expand Down

0 comments on commit 93998f3

Please sign in to comment.