7 ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
8 README_FILE = os.path.join(ROOT_DIR, 'README.md')
10 with io.open(README_FILE, encoding='utf-8') as f:
13 PREFIX = '%YOUTUBE-DL(1)\n\n# NAME\n'
14 readme = re.sub(r'(?s)# INSTALLATION.*?(?=# DESCRIPTION)', '', readme)
15 readme = PREFIX + readme
17 if sys.version_info < (3, 0):
18 print(readme.encode('utf-8'))