Skip to content

Commit

Permalink
<gitroot>/tito wrapper
Browse files Browse the repository at this point in the history
This makes executing of Tito-from-Git a bit more convenient.
  • Loading branch information
praiskup committed Feb 27, 2024
1 parent c6c0911 commit 36fba5d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tito
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#! /bin/sh

gitrootdir=$(readlink -f "$(dirname "$0")")
run_python=${PYTHON-python3}

echo >&2 "\
Warning: Running Tito from a git repository is not supported.
If you are not a developer working on Tito code, please install it properly
https://github.com/rpm-software-management/tito/blob/master/doc/index.md#install
"

export PYTHONPATH
PYTHONPATH=$gitrootdir/src/${PYTHONPATH+:"$PYTHONPATH"}
exec $run_python -c 'from tito.cli import main; main()' "$@"

0 comments on commit 36fba5d

Please sign in to comment.