mirror of
https://github.com/crewAIInc/crewAI.git
synced 2025-12-15 20:08:29 +00:00
Move os import to top-level imports
- Follow Python best practices by placing import at module level - Remove redundant inline import from __init__ method Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
import os
|
||||
import traceback
|
||||
from typing import TYPE_CHECKING, Any, cast
|
||||
import warnings
|
||||
@@ -49,7 +50,6 @@ class RAGStorage(BaseRAGStorage):
|
||||
self.allow_reset = allow_reset
|
||||
|
||||
if path and path.strip():
|
||||
import os
|
||||
self.path = os.path.abspath(path.strip())
|
||||
else:
|
||||
self.path = None
|
||||
|
||||
Reference in New Issue
Block a user