Skip to content

Commit

Permalink
Merge pull request #200 from alexprey/issue_199_fix
Browse files Browse the repository at this point in the history
Fix issue #199. Change logic to build a result file name in xmile-py …
  • Loading branch information
JamesPHoughton authored Nov 30, 2018
2 parents 2620568 + 6810c64 commit 7b759ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pysd/py_backend/xmile/xmile2py.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from lxml import etree
from ...py_backend import builder, utils

import os.path
import numpy as np

def translate_xmile(xmile_file):
Expand Down Expand Up @@ -327,7 +328,9 @@ def parse_lookup_xml_node(node):
'arguments': '',
})

outfile_name = xmile_file.replace('.xmile', '.py')
file_name, file_extension = os.path.splitext(xmile_file)

outfile_name = file_name + '.py'

builder.build(elements=model_elements,
subscript_dict={},
Expand Down

0 comments on commit 7b759ac

Please sign in to comment.