Skip to content

Commit

Permalink
Try to fix errors which appears on readthedocs.org
Browse files Browse the repository at this point in the history
  • Loading branch information
FrostyX committed Mar 9, 2015
1 parent 2a8d5b0 commit a8843bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tracer/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,9 @@ def __(paths):

USER_CONFIG_DIRS = [
'/etc/tracer',
expanduser('~' + os.getlogin()) + '/.config/tracer',
]

try:
USER_CONFIG_DIRS.append(expanduser('~' + os.getlogin()) + '/.config/tracer')
except OSError:
pass
1 change: 1 addition & 0 deletions tracer/resources/lang.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def _locale(lang):
for lang in _system_languages():
try: _LOCALE = _locale(lang); break
except ImportError: pass
except AttributeError: pass


# Whenever you want print some language-specific text, use this function
Expand Down

0 comments on commit a8843bf

Please sign in to comment.