Enis Afgan committed 7faeca3

Put back John's fix for HOME env var

  • Participants
  • Parent commits 2371e8f

Comments (0)

Files changed (1)

     Check if virtual-burrito is installed and if a virtualenv named ``venv_name``
     exists. If so, return ``True``; ``False`` otherwise.
-    vb_path = '/home/ubuntu/.venvburrito/'
+    vb_path = os.path.join(os.getenv('HOME', '/root'), '.venvburrito/')
     if os.path.exists(vb_path):
         cm_venv = _run("/bin/bash -l -c '. {0}; lsvirtualenv | grep {1}'".format(vb_path, venv_name))
         if cm_venv and venv_name in cm_venv: