Commit 1af21e06 authored by Mickaël Desfrênes's avatar Mickaël Desfrênes
Browse files

fix demo

parent 9d05fae3
Loading
Loading
Loading
Loading
+4 −32
Changes for src/climax/__main__.py: 4 added lines, 32 removed lines.
Original line number Diff line number Diff line
@@ -588,20 +588,24 @@ def demo():
        shutil.copytree(  ## BaseX databases
            Path(USER_MAX_DIR, "max", CURRENT_MAX_DISTRO_DIR, "fixtures", "max"),
            Path(cur_dir, ".max", "basex", "data", "max"),
            dirs_exist_ok=True,
        )
        shutil.copytree(
            Path(
                USER_MAX_DIR, "max", CURRENT_MAX_DISTRO_DIR, "fixtures", "content_html"
            ),
            Path(cur_dir, "content_html"),
            dirs_exist_ok=True,
        )
        shutil.copytree(
            Path(USER_MAX_DIR, "max", CURRENT_MAX_DISTRO_DIR, "fixtures", "templates"),
            Path(cur_dir, "templates"),
            dirs_exist_ok=True,
        )
        shutil.copytree(
            Path(USER_MAX_DIR, "max", CURRENT_MAX_DISTRO_DIR, "fixtures", "autoroute"),
            Path(cur_dir, "autoroute"),
            dirs_exist_ok=True,
        )

        shutil.copy(
@@ -609,38 +613,6 @@ def demo():
            Path(cur_dir, "config.xml"),
        )

        shutil.copy(
            Path(
                USER_MAX_DIR,
                "max",
                CURRENT_MAX_DISTRO_DIR,
                "src",
                "main",
                "bundles",
                "max-autoroute-bundle",
                "autoroute",
                "webapp",
                "autoroute.xqm",
            ),
            Path(cur_dir, ".max", "basex", "webapp", "max", "autoroutes.xqm"),
        )

        shutil.copy(
            Path(
                USER_MAX_DIR,
                "max",
                CURRENT_MAX_DISTRO_DIR,
                "src",
                "main",
                "bundles",
                "max-content-html-bundle",
                "content-html",
                "webapp",
                "content-html.xqm",
            ),
            Path(cur_dir, ".max", "basex", "webapp", "max", "content-html.xqm"),
        )

        print("[green]" + _("édition de démonstration installée") + "[/green]")
        print(_("Vous pouvez démarrer MaX avec la commande [bold]climax start[/bold]"))