diff --git a/codeflash/cli_cmds/cli.py b/codeflash/cli_cmds/cli.py index 27857806f..40ca2e99c 100644 --- a/codeflash/cli_cmds/cli.py +++ b/codeflash/cli_cmds/cli.py @@ -239,7 +239,8 @@ def project_root_from_module_root(module_root: Path, pyproject_file_path: Path, return git_root_dir() if pyproject_file_path.parent == module_root: return module_root - return module_root.parent.resolve() + parent = module_root.parent + return parent if parent.is_absolute() else parent.absolute() def handle_optimize_all_arg_parsing(args: Namespace) -> Namespace: