def view_documentation(fac): import os.path pdf_name = 'HotSpotterUserGuide.pdf' doc_path = os.path.join(fac.hs.iom.hsroot(), 'documentation') pdf_fpath = os.path.join(doc_path, pdf_name) # Tries to open pdf, if it fails it opens the documentation folder if os.system('open ' + pdf_fpath) == 1: if os.system(pdf_fpath) == 1: crossplat.view_directory(doc_path)
def view_documentation(fac): import os.path pdf_name = 'HotSpotterUserGuide.pdf' doc_path = os.path.join(fac.hs.iom.hsroot(), 'documentation') pdf_fpath = os.path.join(doc_path, pdf_name) # Tries to open pdf, if it fails it opens the documentation folder if os.system('open '+pdf_fpath) == 1: if os.system(pdf_fpath) == 1: crossplat.view_directory(doc_path)
def vd(fac, dname=None): 'View a specific directory (defaults to source directory)' if dname == None: dname = fac.hs.iom.hsroot() crossplat.view_directory(dname)
def vdi(fac): 'View the .hsInternal directory' crossplat.view_directory(fac.hs.iom.get_internal_dpath())
def vdd(fac): 'Opens the database directory window' crossplat.view_directory(fac.hs.db_dpath)