Skip to content
This repository
Browse code

ensure trailing slash on virtualenv path

  • Loading branch information...
commit 82f127a92cb627d6907e2b8f7ff08d163674bc23 1 parent 06c5a8f
Dusty Phillips buchuki authored

Showing 1 changed file with 6 additions and 0 deletions. Show diff stats Hide diff stats

  1. +6 0 greatbigcrane/project/forms.py
6 greatbigcrane/project/forms.py
@@ -49,6 +49,12 @@ class Meta:
49 49 model = PipProject
50 50 exclude = ("project",)
51 51
  52 + def clean_virtualenv_path(self):
  53 + if self.cleaned_data['virtualenv_path'] and not \
  54 + self.cleaned_data['virtualenv_path'].endswith(os.path.sep):
  55 + self.cleaned_data['virtualenv_path'] += os.path.sep
  56 + return self.cleaned_data['virtualenv_path']
  57 +
52 58 def __init__(self, *args, **kwargs):
53 59 instance = kwargs.get('instance')
54 60 if os.path.exists(instance.project.requirements_filename()):

0 comments on commit 82f127a

Please sign in to comment.
Something went wrong with that request. Please try again.