Commit fb27ff2f authored by Michael Völske's avatar Michael Völske

allow running 'webis.py' from multiple python versions

parent dbbf10da
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""The main webis command.
#!/bin/sh
# -*- coding: utf-8 ; mode: python -*-
"true" '''\'
# try running as python3, if that fails fall back to (any) python
command -v python3 > /dev/null
if [ $? -eq 0 ]; then
exec env python3 "$0" "$@"
fi
command -v python > /dev/null
if [ $? -eq 0 ]; then
exec env python "$0" "$@"
else
echo -e "\033[91m[ERROR] Install Python and try again!" 1>&2
exit 1
fi
'''
__doc__ = """The main webis command.
Copyright webis.de 2015-today
Authors: Steve Göring, Martin Potthast
Authors: Janek Bevendorff, Steve Göring, Martin Potthast, Michael Völske
"""
import argparse
......
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