Skip to content

Commit

Permalink
fix: avoid circular imports and optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed Mar 15, 2020
1 parent 1f0b78f commit 9e7b8d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bench/config/supervisor.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from bench.app import get_current_frappe_version, use_rq
from bench.utils import get_bench_name, find_executable
from bench.config.common_site_config import get_config, update_config, get_gunicorn_workers
from bench.config.production_setup import service

# imports - third party imports
import click
Expand Down Expand Up @@ -65,6 +64,8 @@ def get_supervisord_conf():

def update_supervisord_conf(user):
"""From bench v5.0, we're moving to supervisor running as user"""
from bench.config.production_setup import service

supervisord_conf = get_supervisord_conf() or "supervisord.conf"
section = "unix_http_server"

Expand Down
2 changes: 1 addition & 1 deletion bench/patches/v5/fix_user_permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys

# imports - module imports
from bench.utils import log, get_cmd_output, exec_cmd, which
from bench.utils import get_cmd_output, exec_cmd, which
from bench.cli import change_uid_msg


Expand Down

0 comments on commit 9e7b8d1

Please sign in to comment.