Change DB file location.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
This commit is contained in:
parent
c68ee3c764
commit
3a89429079
5
markit
5
markit
@ -26,7 +26,7 @@ import webbrowser
|
|||||||
import html.parser as HTMLParser
|
import html.parser as HTMLParser
|
||||||
from http.client import HTTPConnection
|
from http.client import HTTPConnection
|
||||||
from http.client import HTTPSConnection
|
from http.client import HTTPSConnection
|
||||||
from urllib.parse import urljoin, quote_plus, unquote
|
from urllib.parse import urljoin, unquote
|
||||||
|
|
||||||
# Globals
|
# Globals
|
||||||
addurl = False
|
addurl = False
|
||||||
@ -58,8 +58,9 @@ def usage():
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
def initdb():
|
def initdb():
|
||||||
|
user = os.environ.get('USER')
|
||||||
# Create a connection
|
# Create a connection
|
||||||
conn = sqlite3.connect('bookmarks.db')
|
conn = sqlite3.connect('/home/' + user + '/.cache/bookmarks.db')
|
||||||
cur = conn.cursor()
|
cur = conn.cursor()
|
||||||
|
|
||||||
# Create table if it doesn't exist
|
# Create table if it doesn't exist
|
||||||
|
Loading…
x
Reference in New Issue
Block a user