From 343761bd8c207249a4b041f3380865d822157c90 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 12 May 2006 03:04:07 -0400 Subject: [PATCH] Fix running from installation --- sugar/Makefile.am | 7 ++++--- sugar/__installed__.py.in | 4 +++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sugar/Makefile.am b/sugar/Makefile.am index 7293e3c3..626a56b0 100644 --- a/sugar/Makefile.am +++ b/sugar/Makefile.am @@ -1,10 +1,11 @@ -SUBDIRS = chat browser shell +SUBDIRS = chat browser p2p shell bin_SCRIPTS = sugar sugardir = $(pythondir)/sugar sugar_PYTHON = \ __init__.py \ - __installed__.py + __installed__.py \ + env.py -EXTRA_DIST = sugar +EXTRA_DIST = sugar __uninstalled__.py diff --git a/sugar/__installed__.py.in b/sugar/__installed__.py.in index 717669d8..7e7352f0 100644 --- a/sugar/__installed__.py.in +++ b/sugar/__installed__.py.in @@ -1,2 +1,4 @@ +import os + def internal_get_data_file(filename): - return "@prefix@/share/sugar" + return os.path.join('@prefix@/share/sugar', filename)