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

__init__.py 353 B

1234567891011
  1. import os
  2. # Define the path to the README file relative to the package directory
  3. readme_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), "README.md")
  4. # Read the content of the README file
  5. try:
  6. with open(readme_path, encoding="utf-8") as f:
  7. __doc__ = f.read()
  8. except FileNotFoundError:
  9. __doc__ = "README file not found."