summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 133dcec)
raw | patch | inline | side by side (parent: 133dcec)
author | JazzyNico <JazzyNico@users.sourceforge.net> | |
Sat, 13 Jun 2009 05:13:17 +0000 (05:13 +0000) | ||
committer | JazzyNico <JazzyNico@users.sourceforge.net> | |
Sat, 13 Jun 2009 05:13:17 +0000 (05:13 +0000) |
share/extensions/embedimage.py | patch | blob | history |
index bc3ed6a0555894ca52ec4c7da787cc62606f8c36..f7f0d81d5a0e74611fe5c747eb2e6ac2f9a7d481 100644 (file)
absref=node.get(inkex.addNS('absref','sodipodi'))
url=urlparse.urlparse(xlink)
href=url.path
- if os.name == 'nt' and href[1:1] == '/':
- href = href[3:0]
+ if os.name == 'nt' and href[0] == '/':
+ href = href[3:]
path=''
#path selection strategy:
# 1. href if absolute