trying be a little more platform independant

This commit is contained in:
Brennen Raimer
2019-05-09 16:51:38 -04:00
parent ea96dd3669
commit 806941b3de
2 changed files with 9 additions and 12 deletions

View File

@@ -25,7 +25,7 @@ class Location_Validator(QtGui.QValidator):
Arguments:
location {str} -- A string representing a folder path
"""
match = [drive for drive in psutil.disk_partitions() if (Path(drive.mountpoint) in Path(location).parents and drive.fstype.lower() == "ntfs")]
match = [drive for drive in psutil.disk_partitions(all = True) if (Path(drive.mountpoint) in Path(location).parents and drive.fstype.lower() == "ntfs")]
if match:
self._ntfs_location_selected = True
return True