Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
c482714a
Commit
c482714a
authored
6 years ago
by
Samuel Jones
Browse files
Options
Downloads
Patches
Plain Diff
Re #0 Added command line arguements to the program
parent
524f8994
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/scripts/OpenMostDocumentationForTesting.py
+14
-2
14 additions, 2 deletions
tools/scripts/OpenMostDocumentationForTesting.py
with
14 additions
and
2 deletions
tools/scripts/OpenMostDocumentationForTesting.py
+
14
−
2
View file @
c482714a
...
@@ -14,6 +14,7 @@ import urllib2
...
@@ -14,6 +14,7 @@ import urllib2
import
re
import
re
import
webbrowser
import
webbrowser
import
time
import
time
import
argparse
def
crawl_url_for_html_addons
(
url
):
def
crawl_url_for_html_addons
(
url
):
...
@@ -40,7 +41,12 @@ def open_urls(list_of_urls, delay=1):
...
@@ -40,7 +41,12 @@ def open_urls(list_of_urls, delay=1):
webbrowser
.
open
(
url
)
webbrowser
.
open
(
url
)
main_url
=
"
http://docs.mantidproject.org/nightly/
"
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
'
-d
'
,
'
--open-tab-delay
'
,
type
=
int
,
help
=
"
Delay between each new page tab in seconds.
"
)
args
=
parser
.
parse_args
()
print
(
args
.
delay
)
all_urls
=
[]
all_urls
=
[]
...
@@ -89,5 +95,11 @@ all_urls.extend(mantidplot_urls)
...
@@ -89,5 +95,11 @@ all_urls.extend(mantidplot_urls)
print
(
"
All webpages crawled
"
)
print
(
"
All webpages crawled
"
)
print
(
"
Opening Urls...
"
)
print
(
"
Opening Urls...
"
)
open_urls
(
all_urls
)
delay
=
args
.
delay
if
delay
is
None
:
delay
=
1
open_urls
(
all_urls
,
delay
)
print
(
"
All URLs opened
"
)
print
(
"
All URLs opened
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment