tartube/pack/bin/tartube

82 lines
2.4 KiB
Python
Executable File

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2019-2020 A S Lewis
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program. If not, see <http://www.gnu.org/licenses/>.
"""Tartube main file."""
# Import Gtk modules
# ...
# Import other modules
import os
import sys
import importlib.util
# Add module directory to path to prevent import issues
spec = importlib.util.find_spec('tartube')
if spec is not None:
sys.path.append(os.path.abspath(os.path.dirname(spec.origin)))
# Import our modules
import mainapp
# 'Global' variables
__packagename__ = 'tartube'
__prettyname__ = 'Tartube'
__version__ = '2.0.016'
__date__ = '10 Apr 2020'
__copyright__ = 'Copyright \xa9 2019-2020 A S Lewis'
__license__ = """
Copyright \xa9 2019-2020 A S Lewis.
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
"""
__author_list__ = [
'A S Lewis',
]
__description__ = 'A front-end GUI for youtube-dl,\n' \
+ 'partly based on youtube-dl-gui\n' \
+ 'and written in Python 3 / Gtk 3'
__website__ = 'http://tartube.sourceforge.io'
__app_id__ = 'io.sourceforge.tartube'
# There are three executables; a default one, and two others used in Debian/RPM
# packaging (of which this is one). The executables are identical, except for
# the values of these variables
__pkg_install_flag__ = True
__pkg_strict_install_flag__ = False
# Start Tartube
app = mainapp.TartubeApp()
app.run(sys.argv)