From b655f90511f9e6a336e80a9545e0e5ad5ad1cdea Mon Sep 17 00:00:00 2001 From: you-n-g Date: Sun, 3 Jul 2022 21:30:08 +0800 Subject: [PATCH] Fix mount path bug (#1129) * Fix mount path bug * Update __init__.py --- qlib/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qlib/__init__.py b/qlib/__init__.py index c8399d0e0..5d152c4c9 100644 --- a/qlib/__init__.py +++ b/qlib/__init__.py @@ -113,6 +113,8 @@ def _mount_nfs_uri(provider_uri, mount_path, auto_mount: bool = False): # system: linux/Unix/Mac # check mount _remote_uri = provider_uri[:-1] if provider_uri.endswith("/") else provider_uri + # `mount a /b/c` is different from `mount a /b/c/`. So we convert it into string to make sure handling it accurately + mount_path = str(mount_path) _mount_path = mount_path[:-1] if mount_path.endswith("/") else mount_path _check_level_num = 2 _is_mount = False