Changeset 3544 for trunk/makeTutorial.py


Ignore:
Timestamp:
Aug 2, 2018 1:08:36 PM (3 years ago)
Author:
toby
Message:

add 2nd calibration tutorial, add to index & add video links

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/makeTutorial.py

    r3386 r3544  
    1919from __future__ import print_function
    2020import os
     21import requests
    2122import GSASIIpath
    2223#import GSASIIctrl as G2G
     
    6667            else:
    6768                print('<LI><A href="{}">{}</A>'.format(pageURL,l[2].strip()),file=out)
    68 
     69           
     70            # check for video tutorial
     71            vname = 'https://anl.box.com/v/' + os.path.splitext(l[1])[0].replace(' ','')[:30]
     72            if requests.get(vname).status_code == 200:
     73                print(' [link: <A href="{}">video</A>].'.format(vname),file=out)
     74                #print('Found video',vname)
     75            else:
     76                print('No video',vname)
    6977            if GSASIIpath.svnList(dataURL,False):
    7078                print(' [link: <A href="{}">Exercise files</A>].'.format(dataURL),file=out)
Note: See TracChangeset for help on using the changeset viewer.