Skip to content

Commit fa35650

Browse files
committed
Change parser for default DB location
1 parent ee6e47e commit fa35650

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import getpass
1+
import os
22

33
# Using infura as to not require the user to run an IPFS node
44
host = "https://ipfs.infura.io"
@@ -8,7 +8,7 @@
88
tmpDir = "/tmp"
99

1010
# History location
11-
dbLocation = "/home/{}/.local/skyhook.db".format(getpass.getuser())
11+
dbLocation = "{}/.local/skyhook.db".format(os.environ["HOME"])
1212

1313
usage = """
1414
skyhook clear history - Delete everything from history
@@ -24,4 +24,4 @@
2424
2525
skyhook upload [file name] - Upload a file specified by [file name] from the current directory to the IPFS network
2626
skyhook download [hash] - Download a file specified by [hash] from the IPFS network to the current directory
27-
"""
27+
"""

0 commit comments

Comments
 (0)