Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
940341a1
Commit
940341a1
authored
Mar 02, 2001
by
Ka-Ping Yee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify synopsis line a bit.
Remove -no-about-splash option (not understood by all Netscapes).
parent
7fe8d309
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Lib/webbrowser.py
Lib/webbrowser.py
+3
-3
No files found.
Lib/webbrowser.py
View file @
940341a1
"""
Remote-control interfaces to common
browsers."""
"""
Interfaces for launching and remotely controlling Web
browsers."""
import
os
import
os
import
sys
import
sys
...
@@ -94,7 +94,7 @@ if os.environ.get("TERM") or os.environ.get("DISPLAY"):
...
@@ -94,7 +94,7 @@ if os.environ.get("TERM") or os.environ.get("DISPLAY"):
if
_iscommand
(
"w3m"
):
if
_iscommand
(
"w3m"
):
register
(
"w3m"
,
None
,
GenericBrowser
(
"w3m %s"
))
register
(
"w3m"
,
None
,
GenericBrowser
(
"w3m %s"
))
# X browsers have mre in the way of options
# X browsers have m
o
re in the way of options
if
os
.
environ
.
get
(
"DISPLAY"
):
if
os
.
environ
.
get
(
"DISPLAY"
):
# First, the Netscape series
# First, the Netscape series
if
_iscommand
(
"netscape"
)
or
_iscommand
(
"mozilla"
):
if
_iscommand
(
"netscape"
)
or
_iscommand
(
"mozilla"
):
...
@@ -111,7 +111,7 @@ if os.environ.get("TERM") or os.environ.get("DISPLAY"):
...
@@ -111,7 +111,7 @@ if os.environ.get("TERM") or os.environ.get("DISPLAY"):
rc
=
os
.
system
(
cmd
)
rc
=
os
.
system
(
cmd
)
if
rc
:
if
rc
:
import
time
import
time
os
.
system
(
"%s
-no-about-splash
&"
%
self
.
name
)
os
.
system
(
"%s &"
%
self
.
name
)
time
.
sleep
(
PROCESS_CREATION_DELAY
)
time
.
sleep
(
PROCESS_CREATION_DELAY
)
rc
=
os
.
system
(
cmd
)
rc
=
os
.
system
(
cmd
)
return
not
rc
return
not
rc
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment