Skip to content

Commit

Permalink
Write file paths as literal strings
Browse files Browse the repository at this point in the history
  • Loading branch information
enekomartinmartinez committed Jul 5, 2024
1 parent 3a294e4 commit 0f5b803
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pysd/builders/python/python_expressions_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ def build(self, arguments: dict) -> Union[BuildAST, None]:
"""
self.component.type = "Lookup"
self.component.subtype = "External"
arguments["params"] = "'%s', '%s', '%s', '%s'" % (
arguments["params"] = "r'%s', '%s', '%s', '%s'" % (
self.file, self.tab, self.x_row_or_col, self.cell
)
final_subs, arguments["subscripts"] =\
Expand Down Expand Up @@ -966,7 +966,7 @@ def build(self, arguments: dict) -> Union[BuildAST, None]:
"""
self.component.type = "Data"
self.component.subtype = "External"
arguments["params"] = "'%s', '%s', '%s', '%s'" % (
arguments["params"] = "r'%s', '%s', '%s', '%s'" % (
self.file, self.tab, self.time_row_or_col, self.cell
)
final_subs, arguments["subscripts"] =\
Expand Down Expand Up @@ -1041,7 +1041,7 @@ def build(self, arguments: dict) -> Union[BuildAST, None]:
"""
self.component.type = "Constant"
self.component.subtype = "External"
arguments["params"] = "'%s', '%s', '%s'" % (
arguments["params"] = "r'%s', '%s', '%s'" % (
self.file, self.tab, self.cell
)
final_subs, arguments["subscripts"] =\
Expand Down

0 comments on commit 0f5b803

Please sign in to comment.