Fix bug in relative path determination
This commit is contained in:
parent
38c5da9d2a
commit
bddadc9565
1 changed files with 3 additions and 3 deletions
|
@ -211,12 +211,12 @@ class DataLoader():
|
|||
if os.path.exists(source2):
|
||||
self.set_basedir(cur_basedir)
|
||||
return source2
|
||||
self.set_basedir(cur_basedir)
|
||||
|
||||
obvious_local_path = self.path_dwim(source)
|
||||
if os.path.exists(obvious_local_path):
|
||||
self.set_basedir(cur_basedir)
|
||||
#self.set_basedir(cur_basedir)
|
||||
return obvious_local_path
|
||||
|
||||
self.set_basedir(cur_basedir)
|
||||
return source2 # which does not exist
|
||||
return source2
|
||||
|
||||
|
|
Loading…
Reference in a new issue