you-get/you-get
Mark Mayo 4be4f650d0 Fixed deprecated module, whitespace, booleans and other small tidyups
Lots of whitespace, cleanups
simplified if conditions
Cleaned up imports (using isort)
fixed use of deprecated imp module
2022-11-27 21:04:02 +13:00

17 lines
483 B
Python
Executable File

#!/usr/bin/env python3
import os
import sys
_srcdir = '%s/src/' % os.path.dirname(os.path.realpath(__file__))
_filepath = os.path.dirname(sys.argv[0])
sys.path.insert(1, os.path.join(_filepath, _srcdir))
if sys.version_info[0] == 3:
import you_get
if __name__ == '__main__':
you_get.main(repo_path=_filepath)
else: # Python 2
from you_get.util import log
log.e("[fatal] Python 3 is required!")
log.wtf("try to run this script using 'python3 you-get'.")