Skip to content

Commit 1275814

Browse files
authored
fix convert_txt command (#195)
1 parent 3cccd93 commit 1275814

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

extensions/commands/migrate/cmd_convert_txt.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
from jinja2 import Template
44
from conan.cli.command import conan_command
55
from conan.api.output import cli_out_write
6-
from conans.client.loader_txt import ConanFileTextLoader
6+
7+
# FIXME: This shouldn't be done, this is an internal Conan API and shouldn't be used
8+
# It is forbidden, and it can break anytime
9+
try:
10+
from conan.internal.loader import ConanFileTextLoader
11+
except:
12+
from conans.client.loader_txt import ConanFileTextLoader
713

814

915
@conan_command(group="Extension", formatters={"text": cli_out_write})

0 commit comments

Comments
 (0)