We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee6e47e commit fa35650Copy full SHA for fa35650
config.py
@@ -1,4 +1,4 @@
1
-import getpass
+import os
2
3
# Using infura as to not require the user to run an IPFS node
4
host = "https://ipfs.infura.io"
@@ -8,7 +8,7 @@
8
tmpDir = "/tmp"
9
10
# History location
11
-dbLocation = "/home/{}/.local/skyhook.db".format(getpass.getuser())
+dbLocation = "{}/.local/skyhook.db".format(os.environ["HOME"])
12
13
usage = """
14
skyhook clear history - Delete everything from history
@@ -24,4 +24,4 @@
24
25
skyhook upload [file name] - Upload a file specified by [file name] from the current directory to the IPFS network
26
skyhook download [hash] - Download a file specified by [hash] from the IPFS network to the current directory
27
-"""
+"""
0 commit comments