mirror of
https://github.com/powerline/powerline.git
synced 2025-07-26 15:25:06 +02:00
Use powerline.lib.path.join
in _find_config_files()
This commit is contained in:
parent
76f5a60a9b
commit
efecf408d2
@ -13,6 +13,7 @@ from powerline.lib.unicode import safe_unicode, FailedUnicode
|
|||||||
from powerline.config import DEFAULT_SYSTEM_CONFIG_DIR
|
from powerline.config import DEFAULT_SYSTEM_CONFIG_DIR
|
||||||
from powerline.lib.dict import mergedicts
|
from powerline.lib.dict import mergedicts
|
||||||
from powerline.lib.encoding import get_preferred_output_encoding
|
from powerline.lib.encoding import get_preferred_output_encoding
|
||||||
|
from powerline.lib.path import join
|
||||||
|
|
||||||
|
|
||||||
class NotInterceptedError(BaseException):
|
class NotInterceptedError(BaseException):
|
||||||
@ -29,7 +30,7 @@ def _find_config_files(search_paths, config_file, config_loader=None, loader_cal
|
|||||||
config_file += '.json'
|
config_file += '.json'
|
||||||
found = False
|
found = False
|
||||||
for path in search_paths:
|
for path in search_paths:
|
||||||
config_file_path = os.path.join(path, config_file)
|
config_file_path = join(path, config_file)
|
||||||
if os.path.isfile(config_file_path):
|
if os.path.isfile(config_file_path):
|
||||||
yield config_file_path
|
yield config_file_path
|
||||||
found = True
|
found = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user