Skip to content

Modularization of source code via sub-packages #352

@alhom

Description

@alhom

Path inserts such as these are not very Pythonic, and instead could be done via the package system.

The template solution would be, taking pyCalculations as an example, which is imported as pt.calculations:

  • rename analysator/pyCalculations folder to analysator/calculations
  • rename the contained calculations.py to __init__.py - check how to properly format __init__.py files for subpackages!
  • verify the pt.calculations imports work as before

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions