This commit is contained in:
Timothy J. Baek 2024-09-04 17:14:24 +02:00
parent 6d1bd3ab66
commit c0441ab2b8
3 changed files with 6 additions and 5 deletions

View File

@ -4,6 +4,7 @@ import logging
import os import os
import pkgutil import pkgutil
import sys import sys
import shutil
from pathlib import Path from pathlib import Path
import markdown import markdown
@ -190,7 +191,7 @@ if PIP_INSTALL:
# Check if the data directory exists in the package directory # Check if the data directory exists in the package directory
if DATA_DIR.exists(): if DATA_DIR.exists():
log.info(f"Moving {DATA_DIR} to {OPEN_WEBUI_DIR / 'data'}") 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" DATA_DIR = OPEN_WEBUI_DIR / "data"

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "open-webui", "name": "open-webui",
"version": "0.3.17.dev3", "version": "0.3.17.dev4",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "open-webui", "name": "open-webui",
"version": "0.3.17.dev3", "version": "0.3.17.dev4",
"dependencies": { "dependencies": {
"@codemirror/lang-javascript": "^6.2.2", "@codemirror/lang-javascript": "^6.2.2",
"@codemirror/lang-python": "^6.1.6", "@codemirror/lang-python": "^6.1.6",

View File

@ -1,6 +1,6 @@
{ {
"name": "open-webui", "name": "open-webui",
"version": "0.3.17.dev3", "version": "0.3.17.dev4",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "npm run pyodide:fetch && vite dev --host", "dev": "npm run pyodide:fetch && vite dev --host",
@ -84,4 +84,4 @@
"node": ">=18.13.0 <=21.x.x", "node": ">=18.13.0 <=21.x.x",
"npm": ">=6.0.0" "npm": ">=6.0.0"
} }
} }