mirror of
https://github.com/beetbox/beets.git
synced 2025-12-14 04:23:56 +01:00
Make --config path absolute
This commit is contained in:
parent
d75f6667e1
commit
df51aa2d1a
1 changed files with 1 additions and 0 deletions
|
|
@ -690,6 +690,7 @@ class Configuration(RootView):
|
|||
def add_file(self, filename):
|
||||
"""Parses the file as YAML and adds it to the configuration sources
|
||||
"""
|
||||
filename = os.path.abspath(filename)
|
||||
self.add(ConfigSource(load_yaml(filename), filename))
|
||||
|
||||
class LazyConfig(Configuration):
|
||||
|
|
|
|||
Loading…
Reference in a new issue