# HG changeset patch # User Thinker K.F. Li # Date 1311050469 -28800 # Node ID 998f2076d0bb4e48f235dc3251987ab1aebbaaf1 # Parent 475431ba4cb8c56951e7e04fe3811f87b10af730# Parent 9422a25e798de04cefe5150432d67c9f8ec7b59f Merge from head diff -r 475431ba4cb8 -r 998f2076d0bb paraspace/dexfile.py --- a/paraspace/dexfile.py Tue Jul 19 12:40:30 2011 +0800 +++ b/paraspace/dexfile.py Tue Jul 19 12:41:09 2011 +0800 @@ -1649,7 +1649,15 @@ if __name__ == '__main__': - dex = DEXFile.open('data/testdata1.dex') + import sys + + if len(sys.argv) != 2: + print >> sys.stderr, 'Usage: %s ' % (sys.argv[0]) + sys.exit(1) + pass + + dex_fname = sys.argv[1] + dex = DEXFile.open(dex_fname) print 'Header' h = dex.header