diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-03-02 06:03:47 (GMT) |
---|---|---|
committer | Walter Bender <walter@walter-laptop.(none)> | 2009-03-02 14:45:14 (GMT) |
commit | 0b218d3045918e3c32985ced34eb70aa2764e387 (patch) | |
tree | 4462b4356a28ea7f5367a45225d379228f0ed16d /xol.py | |
parent | edb525a310c2c165de2ee26c1885cb676f867287 (diff) |
Move sugar-free components to infoslicer/ core-library directory
Diffstat (limited to 'xol.py')
-rw-r--r-- | xol.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -12,7 +12,8 @@ from sugar.activity.activity import get_bundle_path, get_activity_root, get_bund from sugar.datastore import datastore
from sugar import activity
-from Processing.NewtifulSoup import NewtifulStoneSoup as BeautifulStoneSoup
+from infoslicer.processing.NewtifulSoup import NewtifulStoneSoup \
+ as BeautifulStoneSoup
import book
logger = logging.getLogger('infoslicer')
@@ -109,7 +110,7 @@ def _dita_management(zip, uid, title): content = BeautifulStoneSoup(book.custom._load(auid))
for image in content.findAll('image'):
- image_path = image['href'].replace("..", book.wiki.root)
+ image_path = book.wiki.root + '/' + image['href']
image_name = os.path.basename(image_path)
image_ext = os.path.splitext(image_name)[1]
|