Christian Ebert committed eaed895

pybrowser: webbrowser does not register .exe on cygwin

Comments (0)

Files changed (1)


         if app is not None:
    = app
         self.appname = util.progname(
+        self.cygwin = util.cygwin()
         if evalurl: # check remote url protocol scheme
             self.ui.proto = 'web'
             u = urlregex.urlregex(self.ui, uniq=False)
     def cygpath(self, tb):
         '''Do we have to call cygpath to transform local path to windows file
         system path?'''
-        if not util.cygwin() or tb:
+        if not self.cygwin or tb:
             return False
             return ('/cygdrive/') == 0 and
         if tb:
             notty = not util.termconnected()
             screen = 'STY' in os.environ
+            if self.cygwin:
+       = os.path.splitext([0]
         cygpath = self.cygpath(tb)
         if not self.items:
             self.items = [self.ui.configitem('net', 'homepage')]