X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=utils%2Fmacos_dmg%2Fjalview_customise_dsstore.py;fp=utils%2Fmacos_dmg%2Fjalview_custom_dsstore.py;h=8434b699649ffe9252c46b1a15d39c09b8bdd069;hb=b96091ff32d202126e5fe30eddb5ad32016f0e1b;hp=dc5d2e772f597a8477ebcea02aaf8a7229bdc537;hpb=b5375e3f77b77e453e4d62e3846cb40c6dedf798;p=jalview.git diff --git a/utils/macos_dmg/jalview_custom_dsstore.py b/utils/macos_dmg/jalview_customise_dsstore.py similarity index 97% rename from utils/macos_dmg/jalview_custom_dsstore.py rename to utils/macos_dmg/jalview_customise_dsstore.py index dc5d2e7..8434b69 100755 --- a/utils/macos_dmg/jalview_custom_dsstore.py +++ b/utils/macos_dmg/jalview_customise_dsstore.py @@ -24,6 +24,14 @@ parser.add_argument("-f", "--filenames", help="List of comma-separated filenames args = parser.parse_args() +def myprint(string): + if (not args.quiet): + print(string) + +def mypprint(string): + if (not args.quiet): + pprint(string) + if (args.dump and not args.input): exit("When --dump used, an --input must be given") @@ -36,6 +44,10 @@ if (args.dump): except: myprint(f"No info for d['.']['{key}']") + alias = mac_alias.Alias.from_bytes( d['.']['icvp']['backgroundImageAlias'] ) + myprint("backgroundImageAlias=") + mypprint(alias) + for data in d: try: data = str(data) @@ -70,13 +82,6 @@ config = json.load(configfile) inputds = DSStore.open(args.input) outputds = DSStore.open(args.output, 'w+') -def myprint(string): - if (not args.quiet): - print(string) - -def mypprint(string): - if (not args.quiet): - pprint(string) bwsp = {}