Skip to content

Commit

Permalink
Insist steps additional config files are posix.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsorby committed May 17, 2024
1 parent 8f703e0 commit 392b922
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mapclient/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"""
import logging
import os
import pathlib
import re
import shutil
import sys
Expand Down Expand Up @@ -183,7 +184,7 @@ def get_steps_additional_config_files(step):

def _workflow_relative_path(filename):
if os.path.isabs(filename):
return os.path.relpath(filename, workflow_dir)
return pathlib.PureWindowsPath(os.path.normpath(os.path.relpath(filename, workflow_dir))).as_posix()

return filename

Expand Down

0 comments on commit 392b922

Please sign in to comment.