Move data to be relative to the code.
This commit is contained in:
parent
73c1dbe4a7
commit
a380b7f915
@ -1,7 +1,4 @@
|
||||
confdir = $(pkgdatadir)
|
||||
conf_DATA = kbdconfig
|
||||
|
||||
imagedir = $(pkgdatadir)
|
||||
image_DATA = default-picture.png
|
||||
|
||||
EXTRA_DIST = $(conf_DATA) $(image_DATA)
|
||||
EXTRA_DIST = $(conf_DATA)
|
||||
|
@ -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 \
|
||||
|
Before Width: | Height: | Size: 10 KiB 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):
|
||||
|
Loading…
Reference in New Issue
Block a user