Skip to content

Commit

Permalink
Fix _try_directories in horizons.utils.platform
Browse files Browse the repository at this point in the history
`os.path.join()` joins its arguments and doesn't take the paths from a
list/tuple.

> TypeError: join() argument must be str or bytes, not 'tuple'
  • Loading branch information
MasterofJOKers committed Jun 18, 2018
1 parent 85c7c20 commit 83b959d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion horizons/util/platform.py
Expand Up @@ -66,7 +66,7 @@ def _try_directories(paths, default=None):
# (lists could also be tuples of course)
for parts in paths:
if all(parts):
return os.path.join(parts)
return os.path.join(*parts)
return default


Expand Down

0 comments on commit 83b959d

Please sign in to comment.