From 8820c153f24968d7ede85dd14f6e4ea95c1659e0 Mon Sep 17 00:00:00 2001 From: jacobhell Date: Wed, 27 Jan 2021 09:27:32 -0600 Subject: [PATCH] Changing PosixPath to Path in cmd_parse.py --- bayesmark/cmd_parse.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bayesmark/cmd_parse.py b/bayesmark/cmd_parse.py index 568c2de..879d94b 100644 --- a/bayesmark/cmd_parse.py +++ b/bayesmark/cmd_parse.py @@ -22,7 +22,7 @@ import sys import uuid as pyuuid from enum import IntEnum, auto -from pathlib import PosixPath +from pathlib import Path import git from git.exc import InvalidGitRepositoryError @@ -313,7 +313,7 @@ def _cleanup(filename_str): def infer_settings(opt_root, opt_pattern="**/optimizer.py"): - opt_root = PosixPath(opt_root) + opt_root = Path(opt_root) assert opt_root.is_dir(), "Opt root directory doesn't exist: %s" % opt_root assert opt_root.is_absolute(), "Only absolute path should have even gotten this far."