Execute post installation task with pip
问题 My Project Tree Structure . ├── example.gif ├── funmotd │ ├── config.json │ ├── __init__.py │ └── quotes_db.py ├── LICENSE ├── README.md └── setup.py setup.py (Removed some code in order to have less code) import sys import os import setuptools from setuptools.command.install import install class PostInstall(install): def run(self): mode = 0o666 bashrc_file = os.path.join(os.path.expanduser('~'), ".bashrc") install.run(self) # Added CLI to .bashrc # Change "config.json" file permission