Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow 'import svg' from any level
  • Loading branch information
cjlano committed Feb 1, 2014
1 parent 3cbb2be commit e4cb38e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions __init__.py
@@ -0,0 +1 @@
from .svg import *
5 changes: 3 additions & 2 deletions svg/__init__.py
@@ -1,7 +1,8 @@
__all__ = ['geometry', 'svg']
#__all__ = ['geometry', 'svg']

from .svg import *

def parse(filename):
from . import svg
f = svg.Svg(filename)
return f

2 changes: 1 addition & 1 deletion svg/svg.py
Expand Up @@ -25,7 +25,7 @@
import itertools
import operator
import json
from svg.geometry import *
from .geometry import *

svg_ns = '{http://www.w3.org/2000/svg}'

Expand Down

0 comments on commit e4cb38e

Please sign in to comment.