Move data to be relative to the code.
This commit is contained in:
parent
73c1dbe4a7
commit
a380b7f915
@ -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)
|
|
||||||
|
@ -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 \
|
||||||
|
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
|
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):
|
||||||
|
Loading…
Reference in New Issue
Block a user