Uploaded image for project: 'Instrument control development'
  1. Instrument control development
  2. INSTRM-1251

Remove __init__.py files to support PEP-420 Implicit Namespaces

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open (View Workflow)
    • Priority: Normal
    • Resolution: Unresolved
    • Component/s: None
    • Labels:
      None

      Description

      Some ICS python directory trees are "correct": they have python/ics/nameActor/ directories and not just python/nameActor directories. Better design, but if a module imports two of those the second import will fail if the python/ics directories have _init_.py files.

      According to PEP-420, the recommended mechanism is not to have _init_.py files in the directories with the shared name (the per-project python/ics/ directories).

      This showed up in ics_fpsActor, which has import ics.cobraCoach and import ics.fpsActor lines in one file.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                cloomis cloomis
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: