bin_manager
wrknv.wenv.bin_manager
¶
Workenv Bin Management¶
General utilities for managing workenv bin directories and tool binaries.
Functions¶
copy_tool_binary
¶
Copy a tool binary to the bin directory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
source_path
|
Path
|
Path to source binary |
required |
target_name
|
str
|
Name for target binary (without .exe) |
required |
bin_dir
|
Path
|
Destination bin directory |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if successful, False otherwise |
Source code in wrknv/wenv/bin_manager.py
find_project_root
¶
Find the project root by looking for pyproject.toml.
Source code in wrknv/wenv/bin_manager.py
get_workenv_bin_dir
¶
Get the workenv bin directory (or fallback location).
Priority: 1. If in a workenv virtualenv -> workenv/bin 2. If in a regular venv -> venv/bin 3. If not in venv, find workenv relative to project root 4. Fallback to ~/.local/bin