From d5fa532b0bc3ccf5c62b1dc6bca65ad618f27a24 Mon Sep 17 00:00:00 2001 From: Brent Huisman Date: Fri, 25 May 2018 16:32:56 +0200 Subject: [PATCH] Import tweak. Update README. --- README.md | 4 ++++ par2deep/gui.py | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 516796a..95745ab 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,10 @@ Or run directly with: $ python par2deep +Alternatively, if you have installed the `cx_Freeze` package, you can generate an msi package for Windows. Adapt `setup_cx.py` to suit your needs (include the `par2` executable and, most importantly, the icon of your choice) and then build the `.msi` file in `/dist`: + + $ python setup_cx.py bdist_msi + ## Usage After installation, run with `par2deep` for the GUI or `par2deep-cli` if you live in the terminal. Command line options may be enumerated by using the --help option. Note that `-q` will update, fix or recreate parity files as it sees fit. If unrepairable damage is found, it will recreate parity data. diff --git a/par2deep/gui.py b/par2deep/gui.py index ce49b26..447ec69 100644 --- a/par2deep/gui.py +++ b/par2deep/gui.py @@ -72,7 +72,10 @@ def topbar_frame(self,stage): def start_options_frame(self,chosen_dir=None): - self.p2d = par2deep.par2deep(chosen_dir) + try: + self.p2d = par2deep.par2deep(chosen_dir) + except TypeError: + self.p2d = par2deep.par2deep.par2deep(chosen_dir) self.args = {}