Skip to content

Commit

Permalink
Relative to absolute database path
Browse files Browse the repository at this point in the history
  • Loading branch information
sn3p committed Feb 4, 2017
1 parent 2ab1146 commit 4a767a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion shazam-tags.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# List saved tags from Shazam macOS app

import os
import sqlite3

db_path = '/Users/snap/Library/Containers/com.shazam.mac.Shazam/Data/Documents/ShazamDataModel.sqlite'
db_path = os.path.expanduser('~/Library/Containers/com.shazam.mac.Shazam/Data/Documents/ShazamDataModel.sqlite')

connection = sqlite3.connect(db_path)
cursor = connection.cursor()
Expand Down

0 comments on commit 4a767a0

Please sign in to comment.