vdstatus/vdstatus.py

15 lines
323 B
Python
Raw Normal View History

2016-10-18 20:00:43 +03:00
import sys
import os
import configparser
import importlib
import plugins
DEFAULT_CONFIG = os.path.join(os.environ['HOME'], 'IdeaProjects/vdstatus/conf.ini')
configuration = configparser.ConfigParser()
configuration.read(DEFAULT_CONFIG)
importlib.import_module('.date', 'plugins')
print(plugins.date.run(configuration))