You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

39 lines
991 B

#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""Youtubedlg __main__ file.
__main__ file is a python 'executable' file which calls the youtubedlg
main() function in order to start the app. It can be used to start
the app from the package directory OR it can be used to start the app
from a different directory after you have installed the youtube_dl_gui
package.
Example:
In order to run the app from the package directory.
$ cd <package director>
$ python __main__.py
In order to run the app from /usr/local/bin etc.. AFTER
you have installed the package using setup.py.
$ youtube-dl-gui
"""
from __future__ import unicode_literals
import sys
if __package__ is None and not hasattr(sys, "frozen"):
# direct call of __main__.py
import os.path
PATH = os.path.realpath(os.path.abspath(__file__))
sys.path.append(os.path.dirname(os.path.dirname(PATH)))
import youtube_dl_gui
if __name__ == '__main__':
youtube_dl_gui.main()