ModernOSWeather/src/main.py

16 lines
364 B
Python
Raw Permalink Normal View History

from installer import install
from server import weather_run
2024-10-15 18:16:19 +03:00
from fix import conky_fix
import argparse
2024-09-09 10:01:44 +03:00
2024-10-09 17:13:41 +03:00
flags = argparse.ArgumentParser()
flags.add_argument("--install", "-i", action="store_true")
2024-10-15 18:16:19 +03:00
flags.add_argument("--fix", "-f", action="store_true")
args = flags.parse_args()
if args.install:
install()
2024-10-15 18:16:19 +03:00
elif args.fix:
conky_fix()
2024-10-11 09:37:34 +03:00
else:
weather_run()