From 6b77e04560060c24b45a17059e135cd185871381 Mon Sep 17 00:00:00 2001 From: Ben Widawsky Date: Thu, 7 Feb 2013 18:58:17 -0800 Subject: [PATCH] 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 --- tools/quick_dump/quick_dump.py | 3 +++ 1 file changed, 3 insertions(+) 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('.'):