Remove this sep normalization, let abspath do its job.

This commit is contained in:
voussoir 2021-12-23 17:42:48 -08:00
parent 00b3a05850
commit b59fb409d9
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -31,7 +31,6 @@ class NotEnoughSpace(Exception):
self.drive = drive self.drive = drive
def reserve_disk_space(reserve, drive): def reserve_disk_space(reserve, drive):
drive = drive.replace('\\', os.sep).replace('/', os.sep)
drive = os.path.abspath(drive) drive = os.path.abspath(drive)
drive = os.path.splitdrive(drive)[0] drive = os.path.splitdrive(drive)[0]