Commit d7d493c2 authored by Colomban Wendling's avatar Colomban Wendling

Small imports cleanup

parent 17288503
#!/usr/bin/env python3
import picomon.__main__
from picomon.__main__ import run
picomon.__main__.run()
run()
#!/usr/bin/env python3
import subprocess
import sys
from subprocess import call
from sys import argv
import os
import importlib
from picomon import config
from picomon import mails
from picomon import config, mails
from picomon.__main__ import parse_args, import_config
# launch picomon
filename = 'picomon'
if os.path.sep in sys.argv[0]:
filename = os.path.join(os.path.dirname(sys.argv[0]), filename)
if os.path.sep in argv[0]:
filename = os.path.join(os.path.dirname(argv[0]), filename)
retcode = subprocess.call([filename] + sys.argv[1:])
retcode = call([filename] + argv[1:])
# load config
args = parse_args()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment