forked from iWangJiaxiang/autosub
-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70abec8
commit 28b8e55
Showing
12 changed files
with
2,469 additions
and
2,295 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Defines autosub's entry point. | ||
""" | ||
|
||
from __future__ import absolute_import, print_function, unicode_literals | ||
|
||
# Import built-in modules | ||
# pylint: disable=no-member, protected-access | ||
import multiprocessing | ||
import sys | ||
|
||
|
||
if __package__ is None and not hasattr(sys, "frozen"): | ||
# direct call of __main__.py | ||
# Reference: https://github.com/rg3/youtube-dl/blob/master/youtube_dl/__main__.py | ||
import os.path | ||
PATH = os.path.realpath(os.path.abspath(__file__)) | ||
sys.path.insert(0, os.path.dirname(os.path.dirname(PATH))) | ||
|
||
# Any changes to the path and your own modules | ||
|
||
if __name__ == "__main__": | ||
# On Windows calling this function is necessary. | ||
if sys.platform.startswith('win'): | ||
multiprocessing.freeze_support() | ||
import autosub | ||
autosub.main() | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Defines autosub's entry point. | ||
""" | ||
|
||
from __future__ import absolute_import, print_function, unicode_literals | ||
|
||
# Import built-in modules | ||
# pylint: disable=no-member, protected-access | ||
import multiprocessing | ||
import sys | ||
|
||
|
||
if __package__ is None and not hasattr(sys, "frozen"): | ||
# direct call of __main__.py | ||
# Reference: https://github.com/rg3/youtube-dl/blob/master/youtube_dl/__main__.py | ||
import os.path | ||
PATH = os.path.realpath(os.path.abspath(__file__)) | ||
sys.path.insert(0, os.path.dirname(os.path.dirname(PATH))) | ||
|
||
# Any changes to the path and your own modules | ||
|
||
if __name__ == "__main__": | ||
# On Windows calling this function is necessary. | ||
if sys.platform.startswith('win'): | ||
multiprocessing.freeze_support() | ||
import autosub | ||
autosub.main() |
Oops, something went wrong.