示例#1
0
 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)
示例#2
0
 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)
示例#3
0
 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)
示例#4
0
 def vdi(fac):
     'View the .hsInternal directory'
     crossplat.view_directory(fac.hs.iom.get_internal_dpath())
示例#5
0
 def vdd(fac):
     'Opens the database directory window'
     crossplat.view_directory(fac.hs.db_dpath)
示例#6
0
 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)
示例#7
0
 def vdi(fac):
     'View the .hsInternal directory'
     crossplat.view_directory(fac.hs.iom.get_internal_dpath())
示例#8
0
 def vdd(fac):
     'Opens the database directory window'
     crossplat.view_directory(fac.hs.db_dpath)