Fix the path to the makeindex and and missing import #2856

This commit is contained in:
Simon Schampijer
2007-11-29 14:50:44 +01:00
parent 6e1065454d
commit 8c72c80337
2 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -21,7 +21,8 @@ from ConfigParser import ConfigParser
import os
from sugar import env
from sugar.bundle.bundle import Bundle, NotInstalledException
from sugar.bundle.bundle import Bundle, NotInstalledException, \
MalformedBundleException
class ContentBundle(Bundle):
"""A Sugar content bundle
@@ -162,7 +163,7 @@ class ContentBundle(Bundle):
def _run_indexer(self):
os.spawnlp(os.P_WAIT, 'python',
'python',
os.path.join(env.get_user_library_path(), 'makeIndex.py'))
env.get_prefix_path('share/library-common/make_index.py'))
def is_installed(self):
if self._unpacked: