From c0441ab2b86a9abb4bac3e7d54850074813ba6c8 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Wed, 4 Sep 2024 17:14:24 +0200 Subject: [PATCH] dev4 --- backend/open_webui/env.py | 3 ++- package-lock.json | 4 ++-- package.json | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/backend/open_webui/env.py b/backend/open_webui/env.py index c5acc99c2..53745e7f3 100644 --- a/backend/open_webui/env.py +++ b/backend/open_webui/env.py @@ -4,6 +4,7 @@ import logging import os import pkgutil import sys +import shutil from pathlib import Path import markdown @@ -190,7 +191,7 @@ if PIP_INSTALL: # Check if the data directory exists in the package directory if DATA_DIR.exists(): log.info(f"Moving {DATA_DIR} to {OPEN_WEBUI_DIR / 'data'}") - DATA_DIR.rename(OPEN_WEBUI_DIR / "data") + shutil.move(str(DATA_DIR), str(OPEN_WEBUI_DIR / "data")) DATA_DIR = OPEN_WEBUI_DIR / "data" diff --git a/package-lock.json b/package-lock.json index 6687d601a..8b047ccf7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "open-webui", - "version": "0.3.17.dev3", + "version": "0.3.17.dev4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "open-webui", - "version": "0.3.17.dev3", + "version": "0.3.17.dev4", "dependencies": { "@codemirror/lang-javascript": "^6.2.2", "@codemirror/lang-python": "^6.1.6", diff --git a/package.json b/package.json index 90bf5f540..2effb2498 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "open-webui", - "version": "0.3.17.dev3", + "version": "0.3.17.dev4", "private": true, "scripts": { "dev": "npm run pyodide:fetch && vite dev --host", @@ -84,4 +84,4 @@ "node": ">=18.13.0 <=21.x.x", "npm": ">=6.0.0" } -} \ No newline at end of file +}