Move data to be relative to the code.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
imagedir = $(pkgdatadir)/shell/intro
|
||||
image_DATA = default-picture.png
|
||||
|
||||
EXTRA_DIST = $(conf_DATA) $(image_DATA)
|
||||
sugardir = $(pkgdatadir)/shell/intro
|
||||
sugar_PYTHON = \
|
||||
__init__.py \
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
@@ -143,7 +143,8 @@ class VideoBox(hippo.CanvasBox, hippo.CanvasItem):
|
||||
self._img_widget.props.widget = self._img
|
||||
|
||||
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)
|
||||
|
||||
def _clear_image_cb(self, widget, event):
|
||||
|
||||
Reference in New Issue
Block a user