Re: wxglade codegen causes exception error Cannot create a file when that file already exists
Carsten Grohmann <[email protected]>
| Newsgroups | gmane.comp.python.wxglade |
|---|---|
| Message-ID | <[email protected]> |
Hello Graeme, Graeme Glenn - InfoComm Engineering schrieb am 08.01.2016: > try: > if need_backup: > # GGG added following two lines to delete existing back if > exists > if os.path.isfile(filename + > config.preferences.backup_suffix): os.remove(filename + > config.preferences.backup_suffix) os.rename(filename, filename + > config.preferences.backup_suffix) config.backed_up[filename] = True Thank you for reporting this bug and the patch. I've applied your patch with a little modification. The change are in the current development version as well as in the stable branch. If you like, you can download the patched stable version "WXG-BRANCH-VERSION_0_7_1" from https://bitbucket.org/agriggio/wxglade/downloads#branch-downloads, extract and run it like described in "Single User Installation (Extract and Run)" http://wxglade.sourceforge.net/manual/ch01s05.html#idm139644312877648. Regards, Carsten ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140