2014-07-21 04:39:40 +04:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# This file is Python 2 compliant.
|
2012-08-20 19:54:03 +04:00
|
|
|
|
2013-02-15 02:09:49 +04:00
|
|
|
import os, sys
|
|
|
|
|
2014-07-21 04:39:40 +04:00
|
|
|
_srcdir = 'src/'
|
|
|
|
_filepath = os.path.dirname(os.path.realpath(__file__))
|
|
|
|
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:
|
|
|
|
from you_get.util import log
|
|
|
|
log.wtf("""
|
|
|
|
[Fatal] Python 3 is required.
|
|
|
|
If Python 3 is already installed on your machine, try to run this script using 'python3 you-get'.""")
|