Skip to content

Commit

Permalink
Merge pull request #1191 from RasaHQ/fix-windows-tests
Browse files Browse the repository at this point in the history
Do not use relpath because it doesnt work well on windows
  • Loading branch information
m-vdb authored Jan 3, 2025
2 parents 94c8832 + 04aec5d commit f94e4f4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rasa_sdk/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,14 +362,13 @@ def reload(self) -> None:
new_module = importlib.reload(module)
self._modules[path] = TimestampModule(timestamp, new_module)
logger.info(
f"Reloaded module/package: '{module.__name__}' "
f"(file: '{os.path.relpath(path)}')"
f"Reloaded module/package: '{module.__name__}' (file: '{path}')"
)
any_module_reloaded = True
except (SyntaxError, ImportError):
logger.exception(
f"Error while reloading module/package: '{module.__name__}' "
f"(file: '{os.path.relpath(path)}'):"
f"(file: '{path}'):"
)
logger.info("Please fix the error(s) in the Python file and try again.")

Expand Down

0 comments on commit f94e4f4

Please sign in to comment.