Skip to content

Add - Functional tests for vanilla pip install and with --editable #34

@uncojohnco

Description

@uncojohnco
from pathlib import Path
import site
import runpy

# TODO: Have this behavior work  with both - vanilla "pip install" and with --editable

# Works with "pip install --editable ."
# root = Path(__file__).parent.parent
# filepath = str(root.joinpath('src/lss/lss_cli.py'))

# Works with "pip install ."
root = Path(site.getsitepackages()[0])  # TODO: This should be more robust...
filepath = str(root.joinpath('lss/lss_cli.py'))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions