Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
code-webis-cmd
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
10
Issues
10
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
code-generic
code-webis-cmd
Commits
fb27ff2f
Commit
fb27ff2f
authored
Dec 14, 2016
by
Michael Völske
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow running 'webis.py' from multiple python versions
parent
dbbf10da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
webis.py
webis.py
+18
-4
No files found.
webis.py
View file @
fb27ff2f
#!/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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment