util/misc.py
changeset 734 5c42cafaee15
parent 731 4fc681ed0c61
child 781 cdc6393705ce
equal deleted inserted replaced
733:915be999f3f0 734:5c42cafaee15
     4 
     4 
     5 import os,sys
     5 import os,sys
     6 
     6 
     7 # helper func to get path to images
     7 # helper func to get path to images
     8 def opjimg(imgname):
     8 def opjimg(imgname):
     9     return os.path.join(sys.path[0], "images",imgname)
     9     return os.path.join(sys.path[0], "images", imgname+".png")
    10     
    10     
    11 # helper func to check path write permission
    11 # helper func to check path write permission
    12 def CheckPathPerm(path):
    12 def CheckPathPerm(path):
    13     if path is None or not os.path.isdir(path):
    13     if path is None or not os.path.isdir(path):
    14         return False
    14         return False