Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

util: add paths.get_icon_path()

Changeset 58867a469288

Parent 8b97b4597c61

by Yuya Nishihara

Changes to one file · Browse files at 58867a469288 Showing diff from parent 8b97b4597c61 Diff from another changeset...

 
25
26
27
28
29
30
 
31
32
33
34
35
36
 
 
 
 
37
38
39
 
25
26
27
 
 
 
28
29
30
31
32
33
34
35
36
37
38
39
40
41
@@ -25,15 +25,17 @@
   def get_tortoise_icon(icon):   "Find a tortoisehg icon" - global icon_path - path = icon_path or os.path.join(get_prog_root(), 'icons') - icopath = os.path.join(path, icon) + icopath = os.path.join(get_icon_path(), icon)   if os.path.isfile(icopath):   return icopath   else:   print 'icon not found', icon   return None   +def get_icon_path(): + global icon_path + return icon_path or os.path.join(get_prog_root(), 'icons') +  def get_license_path():   global license_path   return license_path or os.path.join(get_prog_root(), 'COPYING.txt')