File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,7 @@ def __init__(
2727 version = None ,
2828 ):
2929 from .consts import YAML_VERSION
30-
31- if project_name is None :
32- project_name = os .environ .get ("project_name" , None )
3330 from . import odoo_config # NOQA
34-
3531 from .tools import _get_customs_root
3632
3733 try :
Original file line number Diff line number Diff line change @@ -1556,6 +1556,12 @@ def download_file(url):
15561556def _get_default_project_name (restrict ):
15571557 from .exceptions import NoProjectNameException
15581558
1559+ if (
1560+ os .environ .get ("project_name" )
1561+ and os .environ .get ("DOCKER_MACHINE" ) == "1"
1562+ ):
1563+ return os .environ .get ("project_name" , None )
1564+
15591565 def _get_project_name_from_file (path ):
15601566 path = Path (path )
15611567 if not path .exists ():
You can’t perform that action at this time.
0 commit comments