os.expanduser for home dir

This commit is contained in:
Jimmy O'Rourke 2018-03-25 18:20:03 -04:00 committed by Samuel Henrique
parent 7255865640
commit bf4783ff6e

View file

@ -12,7 +12,7 @@ from pokemonterminal.command_flags import parser, is_slideshow
from pokemonterminal.database import Database
from pokemonterminal.filters import Filter
PIPE_PATH = os.environ["HOME"] + "/.pokemon-terminal-pipe" + str(os.getppid())
PIPE_PATH = os.path.join(os.path.expanduser('~'), "/.pokemon-terminal-pipe" + str(os.getppid()))
PIPE_EXISTS = os.path.exists(PIPE_PATH)