Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michael Wedel
wfm_stitching
Commits
32c91118
Commit
32c91118
authored
Jun 22, 2020
by
Owen Arnold
Browse files
Update install script to work on windows mantid installation
parent
8c1d4d87
Changes
1
Hide whitespace changes
Inline
Side-by-side
install_wfm_stitching.py
View file @
32c91118
...
...
@@ -69,6 +69,14 @@ if __name__ == "__main__":
parser
.
add_argument
(
'-u'
,
'--uninstall'
,
action
=
'store_true'
,
default
=
False
,
help
=
'uninstall any existing wfm-stitching package'
)
args
=
parser
.
parse_args
()
interpreter
=
sys
.
executable
opt1
=
sys
.
executable
if
os
.
path
.
exists
(
opt1
):
interpreter
=
opt1
else
:
opt2
=
os
.
path
.
join
(
os
.
path
.
dirname
(
sys
.
executable
),
'python'
)
interpreter
=
opt2
if
not
os
.
path
.
exists
(
interpreter
):
raise
RuntimeError
(
"Cannot find interpreter {0} or {1}"
.
format
(
opt1
,
opt2
))
if
sys
.
version_info
<
(
3
,
5
):
raise
RuntimeError
(
"Python version too old. Needs to be >= 3.5, but found {}"
.
format
(
repr
(
sys
.
version_info
)))
if
args
.
uninstall
:
...
...
Write
Preview
Supports
Markdown
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