equal
deleted
inserted
replaced
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 |