Making run_test.sh python version and directory
agnostic

Refactored some of the shell scripts to handle
being run from another directory, as well as to
not force the use of 2.6

edit: format the comments

Change-Id: Id92b9dc82743598b7c570e431cad423c8a2ee95d
diff --git a/tools/install_venv.py b/tools/install_venv.py
index d0920d4..c190886d 100644
--- a/tools/install_venv.py
+++ b/tools/install_venv.py
@@ -96,8 +96,10 @@
     run_command([venv_tool, 'pip', 'install', '-E', venv, '-r', PIP_REQUIRES],
                 redirect_output=False)
 
+    python_version = "python%s.%s" % (sys.version_info[0], sys.version_info[1])
+
     # Tell the virtual env how to "import glance"
-    pthfile = os.path.join(venv, "lib", "python2.6", "site-packages",
+    pthfile = os.path.join(venv, "lib", python_version, "site-packages",
                                  "glance.pth")
     f = open(pthfile, 'w')
     f.write("%s\n" % ROOT)