From: Zack Cerza Date: Fri, 11 Jul 2014 19:20:29 +0000 (-0600) Subject: Use os.path.expanduser() instead of os.environ X-Git-Tag: v0.94.10~27^2^2~364^2~40 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f8658deb5b43d71bf2f3e686f2ae2eaf9944e6d8;p=ceph.git Use os.path.expanduser() instead of os.environ Signed-off-by: Zack Cerza --- diff --git a/teuthology/config.py b/teuthology/config.py index 63838e46b757..0af90915fa4b 100644 --- a/teuthology/config.py +++ b/teuthology/config.py @@ -104,7 +104,7 @@ class TeuthologyConfig(YamlConfig): objects. Currently it serves as a convenient interface to ~/.teuthology.yaml and nothing else. """ - yaml_path = os.path.join(os.environ['HOME'], '.teuthology.yaml') + yaml_path = os.path.join(os.path.expanduser('~/.teuthology.yaml')) _defaults = { 'archive_base': '/var/lib/teuthworker/archive', 'automated_scheduling': False,