mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-12 06:03:37 +00:00
41 lines
1.7 KiB
Python
41 lines
1.7 KiB
Python
|
#!/usr/bin/env python
|
||
|
#
|
||
|
# This file is part of SickGear.
|
||
|
#
|
||
|
# SickGear 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.
|
||
|
#
|
||
|
# SickGear 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 SickGear. If not, see <http://www.gnu.org/licenses/>.
|
||
|
|
||
|
from time import sleep
|
||
|
import runpy
|
||
|
print(
|
||
|
'--------------------------------------------------------------------------------------------------------------'
|
||
|
)
|
||
|
for _ in range(30, 0, -1):
|
||
|
print(
|
||
|
'2019 Jan: You can now run sickgear.py directly\n'
|
||
|
' (SickBeard.py now serves as a legacy convenience which prints this message on every startup)'
|
||
|
)
|
||
|
print(
|
||
|
'--------------------------------------------------------------------------------------------------------------'
|
||
|
)
|
||
|
print(
|
||
|
'2022 Nov: Nearly four years have passed, enough time for this `SickBeard.py` file to be deleted.\n'
|
||
|
' Starting SickGear with this `SickBeard.py` file is slower than using `sickgear.py`,\n'
|
||
|
'(%02ds) please change whatever starts SickGear to use the `sickgear.py` file instead.' % (_ * 2)
|
||
|
)
|
||
|
print(
|
||
|
'--------------------------------------------------------------------------------------------------------------'
|
||
|
)
|
||
|
sleep(2)
|
||
|
runpy.run_module('sickgear', {'_legacy_sickbeard_runner': True}, '__main__')
|