Skip to content

Commit

Permalink
Update runner
Browse files Browse the repository at this point in the history
  • Loading branch information
oleoneto committed Jul 24, 2020
1 parent 048c0dc commit 9cb1360
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions cli/commands/run/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from cli.helpers import find_project_files
from cli.helpers import get_project_name
from cli.helpers import save_to_settings
from cli.helpers import not_in_project_warning
from cli.commands.run.helpers import (
BuildHelper,
EnvironmentHelper,
Expand All @@ -17,19 +18,6 @@
DEFAULT_TOO_MANY_ARGS_ERROR = 'Too many arguments passed.'


def not_an_app_directory_warning():
if not ('apps.py' in os.listdir('.')):
log_error("Not inside an app directory")
raise click.Abort


def not_in_project_warning():
path, management, file = find_project_files(os.getcwd())
if not management:
log_error('Cannot find manage.py in directory')
raise click.Abort


@click.group()
@click.pass_context
def run(ctx):
Expand Down

0 comments on commit 9cb1360

Please sign in to comment.