diff options
| author | Frank Haun <fh@fhaun.de> | 2014-07-01 15:41:23 +0200 |
|---|---|---|
| committer | Frank Haun <fh@fhaun.de> | 2014-07-01 15:41:23 +0200 |
| commit | a1b74d382a72573acf3eae1c467d0735786aa3ee (patch) | |
| tree | 1621fb35419db894cfad4da604726c7cb5ee28f6 /py3status | |
| parent | 519228bd2a0032694e2bddf57949315fd0dce409 (diff) | |
__init__.py: Fix include_paths default.
Diffstat (limited to 'py3status')
| -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..6f6d172 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 = '{}{}'.format(os.path.expanduser('~'), '/') + # defaults config = { 'cache_timeout': 60, 'i3status_config_path': '/etc/i3status.conf', - 'include_paths': ['.i3/py3status/'], + 'include_paths': ['{}{}'.format(home, '.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, |
