mirror of
https://github.com/soimort/you-get.git
synced 2025-02-09 03:37:52 +03:00
[you-get] update
This commit is contained in:
parent
1172689992
commit
b53a2e6676
9
you-get
9
you-get
@ -1,6 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# This file is Python 2 compliant.
|
|
||||||
|
|
||||||
import os, sys
|
import os, sys
|
||||||
|
|
||||||
_srcdir = 'src/'
|
_srcdir = 'src/'
|
||||||
@ -17,8 +15,7 @@ if sys.version_info[0] == 3:
|
|||||||
import you_get
|
import you_get
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
you_get.main(repo_path=_filepath)
|
you_get.main(repo_path=_filepath)
|
||||||
else:
|
else: # Python 2
|
||||||
from you_get.util import log
|
from you_get.util import log
|
||||||
log.wtf("""
|
log.e("[fatal] Python 3 is required!")
|
||||||
[Fatal] Python 3 is required.
|
log.wtf("try to run this script using 'python3 you-get'.")
|
||||||
If Python 3 is already installed on your machine, try to run this script using 'python3 you-get'.""")
|
|
||||||
|
Loading…
Reference in New Issue
Block a user