On 24-Aug-2015, Alex Vong wrote:

> To make youtube-dl works with python3 as well, my initial thought is
> to make youtube-dl a shell script and then pass the original
> youtube-dl python scipt as a here-doc to the python2/python3
> interpreter. I don't think this sounds hackish and could be done
> easily.

The Pythonic way to do that is to define an “entry point” named
‘console_scripts’ in the Setuptools definition file ‘setup.py’
<URL:https://packaging.python.org/en/latest/distributing.html#console-scripts>
<URL:https://pythonhosted.org/setuptools/setuptools.html#automatic-script-creation>.

> If I have time, I will submit a patch.

That would be great!

-- 
 \        “I installed a skylight in my apartment. The people who live |
  `\                             above me are furious!” —Steven Wright |
_o__)                                                                  |
Ben Finney <b...@benfinney.id.au>

Attachment: signature.asc
Description: Digital signature

Reply via email to