INNER CODE UNIT · Python

__init__

DmitryRyumin/ICCV-2023-25-Papers · code/markdown_to_json_parser.py:15

    def __init__(self, path, content):
        self.path = path
        self.content = content


repo_full_name = os.getenv("GITHUB_REPOSITORY")
if repo_full_name:
    owner, repo_name = repo_full_name.split("/")
else:
    owner, repo_name = None, None


class Config:
    GITHUB_TOKEN = os.getenv("INPUT_PAPER_TOKEN") or os.getenv("PAPER_TOKEN")
    GITHUB_WORKSPACE = os.getenv("GITHUB_WORKSPACE", "/github/workspace")
    MARKDOWN_DIRECTORY = "sections"
    OUTPUT_DIRECTORY = "json_data"
    MARKDOWN_DIRECTORY_LOCAL = Path("./sections").resolve()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…