Skip to content

Commit

Permalink
Expand variables for custom theme path
Browse files Browse the repository at this point in the history
  • Loading branch information
amigrave committed Jul 3, 2015
1 parent 0d70fe8 commit d344b08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pudb/theme.py
Expand Up @@ -522,8 +522,8 @@ def add_setting(color, setting):
"add_setting": add_setting,
}

from os.path import expanduser
execfile(expanduser(theme), symbols)
from os.path import expanduser, expandvars
execfile(expanduser(expandvars(theme)), symbols)
except:
print("Error when importing theme:")
from traceback import print_exc
Expand Down

0 comments on commit d344b08

Please sign in to comment.