1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-07-02 03:52:55 -05:00

[cleanup] Consistent style for file heads

This commit is contained in:
pukkandan
2022-06-24 16:36:16 +05:30
parent ac66811112
commit 54007a45f1
55 changed files with 143 additions and 56 deletions

View File

@ -1,4 +1,12 @@
#!/usr/bin/env python3
# Allow direct execution
import os
import sys
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import optparse
@ -7,7 +15,7 @@ def read(fname):
return f.read()
# Get the version from yt_dlp/version.py without importing the package
# Get the version without importing the package
def read_version(fname):
exec(compile(read(fname), fname, 'exec'))
return locals()['__version__']