From a380b7f915ca32293315176027f835fb739bb86b Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 09 Mar 2007 13:07:17 +0000 Subject: Move data to be relative to the code. --- (limited to 'shell/intro') diff --git a/shell/intro/Makefile.am b/shell/intro/Makefile.am index cc11aa9..3b92ea0 100644 --- a/shell/intro/Makefile.am +++ b/shell/intro/Makefile.am @@ -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 \ diff --git a/shell/intro/default-picture.png b/shell/intro/default-picture.png new file mode 100644 index 0000000..e26b9b0 --- /dev/null +++ b/shell/intro/default-picture.png Binary files differ diff --git a/shell/intro/intro.py b/shell/intro/intro.py index 55aa135..cdcc2a3 100644 --- a/shell/intro/intro.py +++ b/shell/intro/intro.py @@ -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): -- cgit v0.9.1