summaryrefslogtreecommitdiffstats
path: root/share/extensions/embedimage.py
diff options
context:
space:
mode:
authorStephen Silver <sasilver@yahoo.com>2008-07-09 09:09:20 +0000
committersasilver <sasilver@users.sourceforge.net>2008-07-09 09:09:20 +0000
commitb2827f46bd1e53159d637354b051fd37536f06f0 (patch)
tree8f6705e35c8cadeba73ba66643b52006c22fd7fa /share/extensions/embedimage.py
parentmove tolerance range towards roughness (diff)
downloadinkscape-b2827f46bd1e53159d637354b051fd37536f06f0.tar.gz
inkscape-b2827f46bd1e53159d637354b051fd37536f06f0.zip
Remove use of obsolete sodipodi:docbase from Python scripts (see bug 246721).
(bzr r6245)
Diffstat (limited to 'share/extensions/embedimage.py')
-rw-r--r--share/extensions/embedimage.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/share/extensions/embedimage.py b/share/extensions/embedimage.py
index 80030a000..ab903a18e 100644
--- a/share/extensions/embedimage.py
+++ b/share/extensions/embedimage.py
@@ -57,19 +57,14 @@ class Embedder(inkex.Effect):
absref=node.get(inkex.addNS('absref','sodipodi'))
href=xlink
svg=self.document.getroot().xpath('/svg:svg', namespaces=inkex.NSS)[0]
- docbase=svg.get(inkex.addNS('docbase','sodipodi'))
-
path=''
#path selection strategy:
# 1. href if absolute
- # 2. sodipodi:docbase + href
- # 3. realpath-ified href
- # 4. absref, only if the above does not point to a file
+ # 2. realpath-ified href
+ # 3. absref, only if the above does not point to a file
if (href != None):
if (os.path.isabs(href)):
path=os.path.realpath(href)
- elif (docbase != None):
- path=os.path.join(docbase,href)
else:
path=os.path.realpath(href)
if (not os.path.isfile(path)):