Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a python project that has a structure like following:

- dir_1
- base.py
- dir_2
- base.py

Both "base.py" files have different contents in them. But when I'm documenting with sphinx, the contents of the latest "base.py" file/module is being documented
for both files.

My path entries in conf.py are as follows:

sys.path.insert(0, os.path.abspath('\dir_1'))

sys.path.insert(0, os.path.abspath('\dir_2'))

How can I document the files' own contents without changing the file names?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900