Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/utils.py b/utils.py
new file mode 100644
index 0000000..74bcc9e
--- /dev/null
+++ b/utils.py
@@ -0,0 +1,9 @@
+
+import os
+
+def get_dir():
+ path = os.path.dirname(__file__)
+ if path == '':
+ path = os.path.abspath('.')
+ return os.path.join(path, 'images/')
+