CDN/Python/Application/CDN.py

16 lines
618 B
Python

#!/usr/bin/env python
# -*- coding: utf-8 -*-
from Abstracts.AnPMap import AnP
from Abstracts.Applications import ApplicationsAbstract
from typing import Any, Optional
from os.path import abspath as path_absolute
from os.path import dirname as directory_name
class CDN(ApplicationsAbstract):
def __init__(self, anp:AnP, inputs:Optional[dict[str, Any|None]|tuple|list] = None) -> None:
super().__init__(anp, "cdn", anp.path.get_parent(path_absolute(directory_name(__file__))), {
**anp.get_dictionary(inputs),
"cdn_default_settings_files" : "/JSON/CDN.py.settings.json"
})