From 47c608804b6a155c171213c133834583d7814f5c Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Mon, 15 Oct 2018 19:27:24 +0000 Subject: [PATCH] Added os.chdir() to virtualenv_activate to place us correctly to pick up patch files. - Legacy-Id: 15583 --- ietf/virtualenv-manage.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ietf/virtualenv-manage.py b/ietf/virtualenv-manage.py index c4128449e..df6477fd9 100755 --- a/ietf/virtualenv-manage.py +++ b/ietf/virtualenv-manage.py @@ -5,6 +5,9 @@ import sys path = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +# change directory so patches etc. will be picked up as expected +os.chdir(path) + # Virtualenv support virtualenv_activation = os.path.join(path, "env", "bin", "activate_this.py") if os.path.exists(virtualenv_activation):