Skip to content

Commit

Permalink
Remove trailing slash for app names
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Felipe Coronel committed Jul 26, 2015
1 parent 9bdccaf commit e9c83bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions django_behave/runner.py
Expand Up @@ -26,6 +26,10 @@
from django.apps import apps

def get_app(label):
if label.endswith('/'):
print("Removing trailing slash of label: %s" % label)
label = label[:-1]

appconfig = apps.get_app_config(label)
return appconfig.models_module or appconfig.module

Expand Down

0 comments on commit e9c83bd

Please sign in to comment.