Skip to content

Commit

Permalink
fix: move filelock import inside function
Browse files Browse the repository at this point in the history
upgrading users might not be able to run commands because of indirect
import here
  • Loading branch information
ankush committed Dec 15, 2022
1 parent b6e58a9 commit e642684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/installer.py
Expand Up @@ -9,7 +9,6 @@

import frappe
from frappe.defaults import _clear_cache
from frappe.utils.synchronization import filelock


def _new_site(
Expand Down Expand Up @@ -427,6 +426,7 @@ def make_site_config(

def update_site_config(key, value, validate=True, site_config_path=None):
"""Update a value in site_config"""
from frappe.utils.synchronization import filelock

if not site_config_path:
site_config_path = get_site_config_path()
Expand Down

0 comments on commit e642684

Please sign in to comment.