From 723e42497962f4838947b5ff6c4bda3198ae2d52 Mon Sep 17 00:00:00 2001 From: sawakita Date: Sun, 30 Sep 2012 20:10:13 +0200 Subject: 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. --- extras/pokered_dir.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 extras/pokered_dir.py (limited to 'extras/pokered_dir.py') 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__)) -- cgit v1.3.1-sl0p