diff options
| author | Ultrabug <ultrabug@ultrabug.net> | 2014-07-23 10:23:38 +0200 |
|---|---|---|
| committer | Ultrabug <ultrabug@ultrabug.net> | 2014-07-23 10:23:38 +0200 |
| commit | 9e222414ca20dcab06cbffd56c8ad49f7d08a21a (patch) | |
| tree | 5441c5fe07f7f239a1eefd09f16d7093561efd62 | |
| parent | 519228bd2a0032694e2bddf57949315fd0dce409 (diff) | |
| parent | 7610a9f6ece43b96b10cf5843e300178c0ef55d8 (diff) | |
Merge pull request #38 from fhaun/testing
fix default include_paths by @fhaun
| -rwxr-xr-x | py3status/__init__.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/py3status/__init__.py b/py3status/__init__.py index e453cda..4d26ca2 100755 --- a/py3status/__init__.py +++ b/py3status/__init__.py @@ -590,11 +590,14 @@ class Py3statusWrapper(): """ Create the py3status based on command line options we received. """ + # get home path + home_path = '{}{}'.format(os.path.expanduser('~'), '/') + # defaults config = { 'cache_timeout': 60, 'i3status_config_path': '/etc/i3status.conf', - 'include_paths': ['.i3/py3status/'], + 'include_paths': ['{}{}'.format(home_path, '.i3/py3status/')], 'interval': 1 } @@ -620,7 +623,7 @@ class Py3statusWrapper(): parser.add_argument('-i', action="append", dest="include_paths", help="""include user-written modules from those - directories (default .i3/py3status)""") + directories (default ~/.i3/py3status)""") parser.add_argument('-n', action="store", dest="interval", type=float, |
