Project Programming Specification

Ninth, project programming specifications
Programming Specification:

For example, ATM, run files in the bin folder under the folder you want to refer src core folder, use the absolute lead
into the relative import, will complain,

ImportError: attempted relative import with no known parent package

The src folder directly added to the path, however, there are a lot of modules, so join the top-level directory path,
from ... Import ...

Different codes classified storage, classification information is stored, specification

table of Contents:

A software development directory specification
-bin
-start software start inlet
-conf
-settings.py profiles
- for example, store a number of fixed path
-core storage core Diovan
-src core business logic
-db data file for storing operational data code file
-db_file db.txt
codes -db_handler.py operation data
-lib
the -common storing public functions
- such as storage decorator
-log
file stored log -log.txt

Guess you like

Origin www.cnblogs.com/pythonwl/p/12594392.html