diff options
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/scannermain.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py index c004fb19..4b723695 100644 --- a/giscanner/scannermain.py +++ b/giscanner/scannermain.py @@ -505,7 +505,12 @@ def get_source_root_dirs(options, filenames): if not dirs: return [] - common = os.path.commonpath(dirs) + try: + common = os.path.commonpath(dirs) + except ValueError: + # ValueError: On Windows in case the paths are on different drives + return dirs + # If the only common path is the root directory give up if os.path.dirname(common) == common: return dirs |