Fix running from installation

This commit is contained in:
Marco Pesenti Gritti 2006-05-12 03:04:07 -04:00
parent a55dc687bf
commit 343761bd8c
2 changed files with 7 additions and 4 deletions

View File

@ -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

View File

@ -1,2 +1,4 @@
import os
def internal_get_data_file(filename):
return "@prefix@/share/sugar"
return os.path.join('@prefix@/share/sugar', filename)