Permalink
Browse files

ensure trailing slash on virtualenv path

  • Loading branch information...
1 parent 06c5a8f commit 82f127a92cb627d6907e2b8f7ff08d163674bc23 Dusty Phillips committed Sep 6, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 greatbigcrane/project/forms.py
@@ -49,6 +49,12 @@ class Meta:
model = PipProject
exclude = ("project",)
+ def clean_virtualenv_path(self):
+ if self.cleaned_data['virtualenv_path'] and not \
+ self.cleaned_data['virtualenv_path'].endswith(os.path.sep):
+ self.cleaned_data['virtualenv_path'] += os.path.sep
+ return self.cleaned_data['virtualenv_path']
+
def __init__(self, *args, **kwargs):
instance = kwargs.get('instance')
if os.path.exists(instance.project.requirements_filename()):

0 comments on commit 82f127a

Please sign in to comment.