Skip to content

Commit 8ea7a67

Browse files
committed
#63 storage profiles fix default path
1 parent 57a7cd9 commit 8ea7a67

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

storage_profiles/default.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
strategy: local_filesystem
22
settings:
3-
root_path: ../storage # The root path where the files will be stored - mount a proper folder in the docker file to match it
3+
root_path: ./storage # The root path where the files will be stored - mount a proper folder in the docker file to match it
44
subfolder_names_format: "" # eg: by_months/{Y}-{mm}/
55
create_subfolders: true

text_extract_api/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
def storage_profile_exists(profile_name: str) -> bool:
2424
profile_path = os.path.abspath(
25-
os.path.join(os.getenv('STORAGE_PROFILE_PATH', '/storage_profiles'), f'{profile_name}.yaml'))
25+
os.path.join(os.getenv('STORAGE_PROFILE_PATH', './storage_profiles'), f'{profile_name}.yaml'))
2626
if not os.path.isfile(profile_path) and profile_path.startswith('..'):
2727
# backward compability for ../storage_manager in .env
2828
sub_profile_path = os.path.normpath(os.path.join('.', profile_path))

0 commit comments

Comments
 (0)