Unverified Commit a4e0390f by Marcin Bury Committed by GitHub

Check if the app is run in python3 (#438)

parent 9944047e
#!/usr/bin/env python #!/usr/bin/env python3
from __future__ import print_function from __future__ import print_function
import sys
if sys.version_info.major < 3:
print("RouterSploit supports only Python3. Rerun application in Python3 environment.")
exit(0)
import logging.handlers import logging.handlers
from routersploit.interpreter import RoutersploitInterpreter from routersploit.interpreter import RoutersploitInterpreter
log_handler = logging.handlers.RotatingFileHandler(filename="routersploit.log", maxBytes=500000) log_handler = logging.handlers.RotatingFileHandler(filename="routersploit.log", maxBytes=500000)
......
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