initial commit
This commit is contained in:
21
publish_meetups/__init__.py
Normal file
21
publish_meetups/__init__.py
Normal file
@@ -0,0 +1,21 @@
|
||||
from pathlib import Path
|
||||
|
||||
from config_path import ConfigPath
|
||||
import configparser
|
||||
|
||||
|
||||
class PublishMeetups:
|
||||
def __init__(self):
|
||||
self.config_file: Path = Path(ConfigPath("publish-meetups", "hzl", ".ini").saveFilePath(mkdir=True))
|
||||
self.config = configparser.ConfigParser()
|
||||
|
||||
self.config["DEFAULT"] = {
|
||||
}
|
||||
|
||||
print(self.config_file)
|
||||
|
||||
def __enter__(self):
|
||||
return self
|
||||
|
||||
def __exit__(self, exc_type, exc_val, exc_tb):
|
||||
pass
|
||||
6
publish_meetups/__main__.py
Normal file
6
publish_meetups/__main__.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from . import PublishMeetups
|
||||
|
||||
|
||||
def cli():
|
||||
with PublishMeetups() as p:
|
||||
print(p)
|
||||
Reference in New Issue
Block a user