tfilter out -psn argument - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 8f3add1e339a27d832fc5a013598622102cea352 DIR parent f2749a744e3706105f0d25f556d904f42cd4df7f HTML Author: ThomasV <thomasv@gitorious> Date: Fri, 24 Apr 2015 23:31:31 +0200 filter out -psn argument Diffstat: M electrum | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- DIR diff --git a/electrum b/electrum t@@ -183,9 +183,8 @@ def run_command(cmd, password=None, args=None): if __name__ == '__main__': - #on osx, delete Process Serial Number arg generated for apps launched in Finder - if is_bundle == 'macosx_app' and sys.argv[1][:4] == '-psn': - del sys.argv[1] + # on osx, delete Process Serial Number arg generated for apps launched in Finder + sys.argv = filter(lambda x: not x.startswith('-psn'), sys.argv) wallet = None parser = arg_parser()