Skip to content

Setup

Setup scripts/remind as standalone for dev

  • add paths
  • mock snakemake

setup_paths()

Add the scripts directory to the Python path to enable direct imports from workflow/scripts subdirectories without relative imports. (for debugging) Call this at the beginning of any script that needs to import from sibling modules.

Source code in workflow/scripts/remind_coupling/setup.py
def setup_paths():
    """
    Add the scripts directory to the Python path to enable direct imports
    from workflow/scripts subdirectories without relative imports. (for debugging)
    Call this at the beginning of any script that needs to import from sibling modules.
    """
    scripts_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
    if scripts_dir not in sys.path:
        sys.path.insert(0, scripts_dir)