openmedialibrary/oml/__main__.py

16 lines
269 B
Python
Raw Normal View History

2014-05-04 17:26:43 +00:00
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
2014-08-09 21:39:10 +00:00
from __future__ import division, print_function
2014-05-04 17:26:43 +00:00
import sys
import api
import commands
2014-05-04 17:26:43 +00:00
import server
if len(sys.argv) > 1 and sys.argv[1] == 'server':
server.run()
else:
2014-08-17 17:17:14 +00:00
commands.main()