Skip to content

Commit

Permalink
格式化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
0xHJK committed Aug 3, 2019
1 parent 8a85507 commit f9dc895
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions music-dl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python
#-*- coding:utf-8 -*-
#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
@author: HJK
@file: music-dl
Expand All @@ -11,15 +11,17 @@

import os, sys
import gettext
gettext.install('music-dl', 'locale')

_srcdir = '%s/' % os.path.dirname(os.path.realpath(__file__))
gettext.install("music-dl", "locale")

_srcdir = "%s/" % 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 music_dl
if __name__ == '__main__':

if __name__ == "__main__":
music_dl.main()
else: # Python 2
print(_('Python3 Only.'))
else: # Python 2
print(_("Python3 Only."))

0 comments on commit f9dc895

Please sign in to comment.