summarylogtreecommitdiffstats
path: root/webbrowser-issue31014.diff
blob: 15291cd80cea49a50a9b61e2edd264df50b82f18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- mu/logic.py.orig	2018-08-14 22:14:04.663531208 +0200
+++ mu/logic.py	2018-08-14 22:14:25.616864697 +0200
@@ -988,6 +988,10 @@
         major_version = '.'.join(__version__.split('.')[:2])
         url = 'https://codewith.mu/{}/help/{}'.format(language_code,
                                                       major_version)
+        # XXX: hacky workaround for https://bugs.python.org/issue31014
+        if 'BROWSER' in os.environ:
+            del os.environ['BROWSER']
+
         webbrowser.open_new(url)
 
     def quit(self, *args, **kwargs):