Changeset 58867a469288…
Parent 8b97b4597c61…
by
Changes to one file · Browse files at 58867a469288 Showing diff from parent 8b97b4597c61 Diff from another changeset...
@@ -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')
|
Loading...