Commit d7d493c2 authored by Colomban Wendling's avatar Colomban Wendling

Small imports cleanup

parent 17288503
#!/usr/bin/env python3 #!/usr/bin/env python3
import picomon.__main__ from picomon.__main__ import run run()
#!/usr/bin/env python3 #!/usr/bin/env python3
import subprocess from subprocess import call
import sys from sys import argv
import os import os
import importlib from picomon import config, mails
from picomon import config
from picomon import mails
from picomon.__main__ import parse_args, import_config from picomon.__main__ import parse_args, import_config
# launch picomon # launch picomon
filename = 'picomon' filename = 'picomon'
if os.path.sep in sys.argv[0]: if os.path.sep in argv[0]:
filename = os.path.join(os.path.dirname(sys.argv[0]), filename) filename = os.path.join(os.path.dirname(argv[0]), filename)
retcode =[filename] + sys.argv[1:]) retcode = call([filename] + argv[1:])
# load config # load config
args = parse_args() 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