コード例 #1
0
#! /usr/bin/env python3

from collections import defaultdict

from mistool.latex_use import install, PPath

DECO = " " * 4

answer = input(f"{DECO}* Local installation ? [y/n] ")

if answer.lower() == "y":
    THIS_DIR = PPath(__file__).parent

    install(ppath=THIS_DIR.parent / "lyalgo")

    print(f"{DECO}* Installation has been done.")
コード例 #2
0
#! /usr/bin/env python3

from mistool.latex_use import install, PPath

PROJECT_NAME = "tnslinalg"

DECO = " " * 4

answer = input(f"{DECO}* Local installation ? [y/n] ")

if answer.lower() == "y":
    THIS_DIR = PPath(__file__).parent

    install(ppath=THIS_DIR.parent / f"{PROJECT_NAME}",
            regpath="file not::**.macros-x.txt")

    print(f"{DECO}* Installation has been done.")
コード例 #3
0
#! /usr/bin/env python3

from collections import defaultdict

from mistool.latex_use import install, PPath

DECO = " " * 4

answer = input(f"{DECO}* Local installation ? [y/n] ")

if answer.lower() == "y":
    THIS_DIR = PPath(__file__).parent

    install(ppath=THIS_DIR.parent / "lybook")

    print(f"{DECO}* Installation has been done.")