youandme/src/yam.py

22 lines
379 B
Python
Raw Normal View History

2020-04-16 11:41:49 +00:00
import sys
try:
from youandme.tor import launch_tor
except ModuleNotFoundError:
pass
from youandme.server import server
def interactive_connector():
print("Starting Tor...")
launch_tor()
print("Tor started.")
server()
if __name__ == "__main__":
if len(sys.argv) == 2:
if sys.argv[1] == 'interactive':
interactive_connector()