Skip to content

Commit

Permalink
move JARS import into needed method, avoid circular import error
Browse files Browse the repository at this point in the history
  • Loading branch information
seanharrison committed Apr 11, 2016
1 parent 871e2f9 commit 1cfe74b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bxml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
"bl": "http:blackearth.us/xml",
})

JARS = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'jars')
JARS = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'jars')
3 changes: 1 addition & 2 deletions bxml/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import os, re, sys, subprocess, tempfile
from bf.text import Text

from . import JARS

class Schema(Text):

def __init__(self, fn, **args):
Expand All @@ -15,6 +13,7 @@ def __init__(self, fn, **args):
def trang(self, ext='.rng'):
"""use trang to create a schema with the given format extension
SIDE EFFECT: creates a new file on the filesystem."""
from . import JARS
trang_jar = os.path.join(JARS, 'trang.jar')
outfn = os.path.splitext(self.fn)[0] + ext
stderr = tempfile.NamedTemporaryFile()
Expand Down

0 comments on commit 1cfe74b

Please sign in to comment.