lookyloo/bin/start.py

19 lines
340 B
Python
Raw Normal View History

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from subprocess import Popen
from lookyloo.helpers import get_homedir
def main():
# Just fail if the env isn't set.
get_homedir()
p = Popen(['run_backend', '--start'])
p.wait()
Popen(['async_scrape'])
Popen(['start_website'])
if __name__ == '__main__':
main()