Skip to content
Permalink
Browse files

Allow relative paths in BNGL importer (#432)

Fixes: #430
  • Loading branch information...
alubbock committed Apr 24, 2019
1 parent 9d2d3bf commit 5a7d307f55eab2f11953accda978eb1168a196ff
Showing with 2 additions and 0 deletions.
  1. +2 −0 pysb/importers/bngl.py
@@ -9,6 +9,7 @@
import pysb.logging
import collections
import numbers
import os


def _ns(tag_string):
@@ -30,6 +31,7 @@ class BnglBuilder(Builder):
"""
def __init__(self, filename, force=False, cleanup=True):
super(BnglBuilder, self).__init__()
filename = os.path.abspath(filename)
with BngFileInterface(model=None, cleanup=cleanup) as con:
con.action('readFile', file=filename, skip_actions=1)
con.action('writeXML', evaluate_expressions=0)

0 comments on commit 5a7d307

Please sign in to comment.
You can’t perform that action at this time.