1. Mikhail Korobov
  2. django-fab-deploy


Mikhail Korobov  committed 10f1d6d

more robust preparevm script

  • Participants
  • Parent commits 22a0b4c
  • Branches multiple web-servers

Comments (0)

Files changed (1)

File fab_deploy_tests/preparevm.py

View file
  • Ignore whitespace
 #!/usr/bin/env python
 import sys
+import os
+# always use fab_deploy from the checkout, not the installed version
+# plus make fab_deploy_tests available for imports
+path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
+sys.path.insert(0, path)
 from fabric.api import env, sudo, run
 from fabtest import fab, VirtualBox