Skip to content

Commit

Permalink
Temporarily fix handing of python file paths on Windows during Snowpa…
Browse files Browse the repository at this point in the history
…rk decorator processing (#1202)
  • Loading branch information
sfc-gh-bdufour authored and sfc-gh-turbaszek committed Jun 17, 2024
1 parent f67a1cb commit 43c30a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ try:
import importlib
with contextlib.redirect_stdout(None):
with contextlib.redirect_stderr(None):
__snowflake_internal_spec = importlib.util.spec_from_file_location("<string>", "{{py_file}}")
__snowflake_internal_spec = importlib.util.spec_from_file_location("<string>", r"{{py_file}}")
__snowflake_internal_module = importlib.util.module_from_spec(__snowflake_internal_spec)
__snowflake_internal_spec.loader.exec_module(__snowflake_internal_module)
except Exception as exc: # Catch any error
Expand Down

0 comments on commit 43c30a9

Please sign in to comment.