quick_dump: chdir us to where the text files are
authorBen Widawsky <ben@bwidawsk.net>
Fri, 8 Feb 2013 02:58:17 +0000 (18:58 -0800)
committerBen Widawsky <ben@bwidawsk.net>
Fri, 8 Feb 2013 02:58:17 +0000 (18:58 -0800)
This is useful if you run out of the quick_dump directory.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
tools/quick_dump/quick_dump.py

index 5c88ef1..7eb043b 100755 (executable)
@@ -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('.'):