summaryrefslogtreecommitdiff
path: root/tools/quick_dump
diff options
context:
space:
mode:
authorBen Widawsky <ben@bwidawsk.net>2013-02-07 18:58:17 -0800
committerBen Widawsky <ben@bwidawsk.net>2013-02-07 18:58:17 -0800
commit6b77e04560060c24b45a17059e135cd185871381 (patch)
tree1d1c0b08899b51472186a3f35f43a5dafa2a019a /tools/quick_dump
parentd8d114bca34239d046fb7ccb16b2efefff5fa41b (diff)
quick_dump: chdir us to where the text files are
This is useful if you run out of the quick_dump directory. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Diffstat (limited to 'tools/quick_dump')
-rwxr-xr-xtools/quick_dump/quick_dump.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/quick_dump/quick_dump.py b/tools/quick_dump/quick_dump.py
index 5c88ef1b..7eb043bc 100755
--- a/tools/quick_dump/quick_dump.py
+++ b/tools/quick_dump/quick_dump.py
@@ -24,6 +24,9 @@ args = parser.parse_args()
if reg.init() == False:
sys.exit()
+# Put us where the script is
+os.chdir(os.path.dirname(sys.argv[0]))
+
#parse anything named base_ these are assumed to apply for all gens.
if args.baseless == False:
for root, dirs, files in os.walk('.'):