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