diff options
author | mathieui <mathieui@mathieui.net> | 2011-11-16 09:46:09 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2011-11-16 09:46:09 +0100 |
commit | 75f7d710801388b2f62deb98968ff8d4d1f0d350 (patch) | |
tree | 50c6828ba8a61ca8ba6c0459d8ad0f5a09b58e5a /src/plugin_manager.py | |
parent | f40f5cb6c21e69abe6693d7cd22ec934d9177610 (diff) | |
download | poezio-75f7d710801388b2f62deb98968ff8d4d1f0d350.tar.gz poezio-75f7d710801388b2f62deb98968ff8d4d1f0d350.tar.bz2 poezio-75f7d710801388b2f62deb98968ff8d4d1f0d350.tar.xz poezio-75f7d710801388b2f62deb98968ff8d4d1f0d350.zip |
Use os.path.expanduser to interpret '~' for _dir config options
Diffstat (limited to 'src/plugin_manager.py')
-rw-r--r-- | src/plugin_manager.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugin_manager.py b/src/plugin_manager.py index e3b786cb..6d3fb05a 100644 --- a/src/plugin_manager.py +++ b/src/plugin_manager.py @@ -10,6 +10,7 @@ plugins_dir = plugins_dir or\ os.path.join(os.environ.get('XDG_DATA_HOME') or\ os.path.join(os.environ.get('HOME'), '.local', 'share'), 'poezio', 'plugins') +plugins_dir = os.path.expanduser(plugins_dir) config_home = os.environ.get("XDG_CONFIG_HOME") if not config_home: |