]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Use os.path.expanduser() instead of os.environ
authorZack Cerza <zack@cerza.org>
Fri, 11 Jul 2014 19:20:29 +0000 (13:20 -0600)
committerZack Cerza <zack@cerza.org>
Fri, 11 Jul 2014 19:20:29 +0000 (13:20 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/config.py

index 63838e46b75741f72643e6d819b7af402b4dfb63..0af90915fa4b796eb62082cccc5135c1aeeacb69 100644 (file)
@@ -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,