mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-23 12:12:47 +00:00
39 lines
1.2 KiB
Python
Executable file
39 lines
1.2 KiB
Python
Executable file
#!/usr/bin/python
|
|
#
|
|
# Copyright (c) 2008,2009 Red Hat, Inc.
|
|
#
|
|
# This software is licensed to you under the GNU General Public License,
|
|
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
|
|
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
|
|
# FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2
|
|
# along with this software; if not, see
|
|
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
|
#
|
|
# Red Hat trademarks are not licensed under GPLv2. No permission is
|
|
# granted to use or replicate Red Hat trademarks that are incorporated
|
|
# in this software or its documentation.
|
|
#
|
|
|
|
"""
|
|
A Tito development script to run from source.
|
|
|
|
This script should only ever be called from bin/ in a source checkout.
|
|
"""
|
|
|
|
import sys
|
|
import os.path
|
|
|
|
|
|
# We know this script is in bin/
|
|
SCRIPT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), "../"))
|
|
SRC_DIR = os.path.normpath(os.path.join(SCRIPT_DIR, "src/"))
|
|
SRC_BIN_DIR = os.path.abspath(os.path.join(SCRIPT_DIR, "bin/"))
|
|
|
|
sys.path.insert(0, SRC_DIR)
|
|
|
|
os.environ['TITO_SRC_BIN_DIR'] = SRC_BIN_DIR
|
|
|
|
from tito.cli import CLI
|
|
|
|
if __name__ == "__main__":
|
|
CLI().main(sys.argv[1:])
|