Skip to content

Commit

Permalink
Re-insert fix from #200
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnectedSystems committed Jan 28, 2021
1 parent 9f61767 commit 6be9013
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pysd/py_backend/xmile/xmile2py.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
Alexey Prey Mulyukin <[email protected]> from sdCloud.io development team.
"""
import re
import os.path

from .SMILE2Py import SMILEParser
from lxml import etree
from .. import builder, utils
Expand Down Expand Up @@ -338,7 +341,8 @@ 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 6be9013

Please sign in to comment.