Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/atoidejouer/tools/storage.py
diff options
context:
space:
mode:
Diffstat (limited to 'atoidejouer/tools/storage.py')
-rw-r--r--atoidejouer/tools/storage.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/atoidejouer/tools/storage.py b/atoidejouer/tools/storage.py
index 0985360..904c56d 100644
--- a/atoidejouer/tools/storage.py
+++ b/atoidejouer/tools/storage.py
@@ -74,11 +74,15 @@ def get_image_path(filename, dir_='graphics'):
def get_html_path(page):
- # return path
return os.path.join(BUND, 'static', 'data', 'html',
'%s.html' % page)
+def get_html_img_path(img_name):
+ return os.path.join(BUND, 'static', 'data', 'html', 'img',
+ '%s.png' % img_name)
+
+
def get_pixbuf_from_data(data, image_type=None, size=None):
# load it
if gtk is None: