summaryrefslogtreecommitdiff
path: root/extras/pokered_dir.py
diff options
context:
space:
mode:
authorsawakita <sawakitanoodles@gmail.com>2012-09-30 20:10:13 +0200
committersawakita <sawakitanoodles@gmail.com>2012-09-30 20:10:13 +0200
commit723e42497962f4838947b5ff6c4bda3198ae2d52 (patch)
treebf962bf2b2b1b37ce04dd10935a805adac135b81 /extras/pokered_dir.py
parent4b28ddb11f38ad2a45b2d7c6cb4c93c2a539ec71 (diff)
Make analyze_incbins dirs reference os-independent
This should fix a bug caused by comparing string literals to directories. It should also be safer, using "os" module to access paths.
Diffstat (limited to 'extras/pokered_dir.py')
-rw-r--r--extras/pokered_dir.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/extras/pokered_dir.py b/extras/pokered_dir.py
new file mode 100644
index 00000000..bfc02888
--- /dev/null
+++ b/extras/pokered_dir.py
@@ -0,0 +1,4 @@
+import os
+
+#main dir of repo (simply one level up than here)
+pokered_dir = os.path.dirname(os.path.dirname(__file__))