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>
This commit is contained in:
Ben Widawsky 2013-02-07 18:58:17 -08:00
parent d8d114bca3
commit 6b77e04560

View File

@ -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('.'):