diff options
Diffstat (limited to 'atoidejouer/tools/storage.py')
-rw-r--r-- | atoidejouer/tools/storage.py | 6 |
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: |