Commit 28532935 authored by David Schwörer's avatar David Schwörer

ensure get_started() works on all os

parent 5aedc788
......@@ -61,11 +61,24 @@ def get_started():
it opens a weblink to a presentation and as well a flow chart
"""
print("Welcome")
import webbrowser
webbrowser.open('https://wikis.ipp-hgw.mpg.de/PhysicsW7X/images/9/9f/2019-04-24_20190424_How_to_access_Infrared_Data.pdf', new=2)
link = "https://wikis.ipp-hgw.mpg.de/PhysicsW7X/images/9/9f/2019-04-24_20190424_How_to_access_Infrared_Data.pdf"
path=str(repr(__file__)).split("downloadversionIRdata")[0].split("'")[1]
os.startfile(path+"IR_data_access_flow_chart.png")
image = path + "IR_data_access_flow_chart.png"
try:
import webbrowser
webbrowser.open(link, new=2)
try:
os.startfile(image)
except AttributeError:
# Non-windows os:
webbrowser.open(image)
except Exception:
# When ever that fails, just print the links:
print("Some slides can be found in the wiki:")
print(link)
print("And a flow-chart for getting and using the data can be found here:")
print(image)
def get_latest_version(stream, project="W7X", testmode=False, t_from=None,
t_to=None, program=None, verbose=0):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment