(self, url, new=0, autoraise=True)
| 180 | self.basename = os.path.basename(self.name) |
| 181 | |
| 182 | def open(self, url, new=0, autoraise=True): |
| 183 | sys.audit("webbrowser.open", url) |
| 184 | cmdline = [self.name] + [arg.replace("%s", url) |
| 185 | for arg in self.args] |
| 186 | try: |
| 187 | if sys.platform[:3] == 'win': |
| 188 | p = subprocess.Popen(cmdline) |
| 189 | else: |
| 190 | p = subprocess.Popen(cmdline, close_fds=True) |
| 191 | return not p.wait() |
| 192 | except OSError: |
| 193 | return False |
| 194 | |
| 195 | |
| 196 | class BackgroundBrowser(GenericBrowser): |