Skip to content

Commit 62e963e

Browse files
committed
default projectname
1 parent 73ed8af commit 62e963e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

wodoo/click_config.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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:

wodoo/tools.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,6 +1556,12 @@ def download_file(url):
15561556
def _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():

0 commit comments

Comments
 (0)