mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-10-21 13:51:06 +00:00
Update files.py
This commit is contained in:
parent
3d93dbc575
commit
cf445f7624
1 changed files with 4 additions and 0 deletions
|
|
@ -309,6 +309,10 @@ def get_abs_path(*relative_paths):
|
|||
"Convert relative paths to absolute paths based on the base directory."
|
||||
return os.path.join(get_base_dir(), *relative_paths)
|
||||
|
||||
def deabsolute_path(path:str):
|
||||
"Convert absolute paths to relative paths based on the base directory."
|
||||
return os.path.relpath(path, get_base_dir())
|
||||
|
||||
def fix_dev_path(path:str):
|
||||
"On dev environment, convert /a0/... paths to local absolute paths"
|
||||
from python.helpers.runtime import is_development
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue