Replace path.absolute() with path.resolve() (#4763)
This commit is contained in:
1 parent
cd810c8286
commit
c47be26f34
11 files changed
+11
-11
No files matched your search
+1
-1
@@ -147,7 +147,7 @@ def is_colab():
|
||||
|
||||
def is_pip():
|
||||
# Is file in a pip package?
|
||||
return 'site-packages' in Path(__file__).absolute().parts
|
||||
return 'site-packages' in Path(__file__).resolve().parts
|
||||
|
||||
|
||||
def is_ascii(s=''):
|
||||
|
||||
Reference in new issue
Block a user