mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +01:00
improve os_path_samefile
This commit is contained in:
parent
35a909bee5
commit
3fc3dfb802
@ -247,7 +247,7 @@ buildstatus_symbols = {'succeeded': '.',
|
||||
def os_path_samefile(path1, path2):
|
||||
try:
|
||||
return os.path.samefile(path1, path2)
|
||||
except:
|
||||
except AttributeError:
|
||||
return os.path.realpath(path1) == os.path.realpath(path2)
|
||||
|
||||
class File:
|
||||
|
Loading…
Reference in New Issue
Block a user