File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1515from installer .records import Hash , RecordEntry
1616from installer .scripts import Script
1717from installer .utils import (
18+ _WINDOWS ,
1819 Scheme ,
1920 construct_record_file ,
2021 copyfileobj_with_hashing ,
@@ -267,10 +268,13 @@ def finalize_installation(
267268 def prefix_for_scheme (file_scheme : str ) -> Optional [str ]:
268269 if file_scheme == scheme :
269270 return None
270- path = os .path .relpath (
271- self .scheme_dict [file_scheme ],
272- start = self .scheme_dict [scheme ],
273- )
271+ if _WINDOWS :
272+ path = os .path .abspath (self .scheme_dict [file_scheme ]) # noqa: PTH100
273+ else :
274+ path = os .path .relpath (
275+ self .scheme_dict [file_scheme ],
276+ start = self .scheme_dict [scheme ],
277+ )
274278 return path + "/"
275279
276280 record_list = list (records )
You can’t perform that action at this time.
0 commit comments