Skip to content

Standardize on Pathlib and formalize logging #49

@allixender

Description

@allixender

Modernize the core code for better maintainability and user control:

  • Replace remaining os.path.join, os.remove, and os.chdir calls with pathlib.Path methods (/ operator, unlink(), cwd(), etc.) across dggrid_runner.py and tool.py.
  • Transition from print() and sys.stdout.write() to the standard Python logging module.
  • Allow users to configure log levels (DEBUG, INFO, ERROR) via a logger instance instead of relying on the silent and capture_logs flags.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions