summaryrefslogtreecommitdiffstats
path: root/util.py
diff options
context:
space:
mode:
authorGravatar ryuslash2010-04-08 15:14:12 +0200
committerGravatar ryuslash2010-04-08 15:14:12 +0200
commit2db5555609b4ab157ea836f9611c6faa80508cf3 (patch)
treef62e16e906feede66f3e6981bfa31ec031bed766 /util.py
parent9fb2b4ff58681dde805f9ac2c8be3b59ad8e9a50 (diff)
download4grab-2db5555609b4ab157ea836f9611c6faa80508cf3.tar.gz
4grab-2db5555609b4ab157ea836f9611c6faa80508cf3.zip
Archive lookup
4grab was saving the archived images to the wrong place, which is now fixed
Diffstat (limited to 'util.py')
-rw-r--r--util.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/util.py b/util.py
new file mode 100644
index 0000000..9e8214e
--- /dev/null
+++ b/util.py
@@ -0,0 +1,7 @@
+import os
+import sys
+
+homedir = os.getenv("HOME")
+if homedir is None:
+ homedir = os.path.dirname(sys.argv[0])
+confdir = os.path.join(homedir, ".4grab")