Move data to be relative to the code.

This commit is contained in:
Marco Pesenti Gritti 2007-03-09 14:07:17 +01:00
parent 73c1dbe4a7
commit a380b7f915
4 changed files with 7 additions and 5 deletions

View File

@ -1,7 +1,4 @@
confdir = $(pkgdatadir) confdir = $(pkgdatadir)
conf_DATA = kbdconfig conf_DATA = kbdconfig
imagedir = $(pkgdatadir) EXTRA_DIST = $(conf_DATA)
image_DATA = default-picture.png
EXTRA_DIST = $(conf_DATA) $(image_DATA)

View File

@ -1,3 +1,7 @@
imagedir = $(pkgdatadir)/shell/intro
image_DATA = default-picture.png
EXTRA_DIST = $(conf_DATA) $(image_DATA)
sugardir = $(pkgdatadir)/shell/intro sugardir = $(pkgdatadir)/shell/intro
sugar_PYTHON = \ sugar_PYTHON = \
__init__.py \ __init__.py \

View File

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@ -143,7 +143,8 @@ class VideoBox(hippo.CanvasBox, hippo.CanvasItem):
self._img_widget.props.widget = self._img self._img_widget.props.widget = self._img
if not has_webcam: if not has_webcam:
path = os.path.join(env.get_data_dir(),'default-picture.png') path = os.path.join(os.path.dirname(__file__),
'default-picture.png')
self._video.load_image(path) self._video.load_image(path)
def _clear_image_cb(self, widget, event): def _clear_image_cb(self, widget, event):