Skip to content

Commit

Permalink
return Path(fp).as_posix(); fixes #443
Browse files Browse the repository at this point in the history
  • Loading branch information
nzxwang committed Oct 29, 2019
1 parent ecdb725 commit 33e7f8e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pydpiper/pipelines/twolevel_model_building.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import os
import sys
import warnings
from pathlib import Path

import numpy as np
from configargparse import Namespace
Expand Down Expand Up @@ -34,9 +35,9 @@ def two_level_pipeline(options : TwoLevelConf):

def relativize_path(fp):
#this annoying function takes care of the csv_paths_relative_to_wd flag.
return os.path.join(os.path.dirname(options.application.csv_file),fp) \
return os.path.join(os.path.dirname(options.application.csv_file), Path(fp).as_posix()) \
if not options.application.csv_paths_relative_to_wd \
else fp
else Path(fp).as_posix()

first_level_dir = options.application.pipeline_name + "_first_level"

Expand Down

0 comments on commit 33e7f8e

Please sign in to comment.