Skip to content

Commit

Permalink
[WIP] Fix lib folders for scripts
Browse files Browse the repository at this point in the history
yuriiNazarenkoTine committed Jun 24, 2024
1 parent 5b3935e commit 4f4ecef
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SPK_NAME = rr-manager
SPK_VERS = 2.0
SPK_REV = 53
SPK_REV = 54
SPK_ICON = src/rr-manager.png

DSM_UI_DIR = ui
2 changes: 1 addition & 1 deletion src/service-setup.sh
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ service_postinst ()

echo ${separator}
echo "Install packages to the app/libs folder"
${SYNOPKG_PKGDEST}/env/bin/pip install --target ${SYNOPKG_PKGDEST}/ui/libs/ -r ${SYNOPKG_PKGDEST}/share/wheelhouse/requirements.txt
${SYNOPKG_PKGDEST}/env/bin/pip install --target ${SYNOPKG_PKGDEST}/ui/webapi/libs/ -r ${SYNOPKG_PKGDEST}/share/wheelhouse/requirements.txt

echo ${separator}
if [ "${SYNOPKG_PKG_STATUS}" == "INSTALL" ]; then
2 changes: 1 addition & 1 deletion src/webapi/getAddons.cgi
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ import cgi
import subprocess
from pathlib import Path
path_root = Path(__file__).parents[1]
sys.path.append(str(path_root)+'/../libs')
sys.path.append(str(path_root)+'/libs')

import libs.yaml as yaml
print("Content-type: application/json\n")
2 changes: 1 addition & 1 deletion src/webapi/getAvailableUpdates.cgi
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ import sys
import cgi
from pathlib import Path
path_root = Path(__file__).parents[1]
sys.path.append(str(path_root)+'/../libs')
sys.path.append(str(path_root)+'/libs')

import libs.yaml as yaml
print("Content-type: application/json\n")
2 changes: 1 addition & 1 deletion src/webapi/getConfig.cgi
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ import subprocess

from pathlib import Path
path_root = Path(__file__).parents[1]
sys.path.append(str(path_root)+'/../libs')
sys.path.append(str(path_root)+'/libs')

import libs.yaml as yaml
print("Content-type: application/json\n")
2 changes: 1 addition & 1 deletion src/webapi/getModules.cgi
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ import sys

from pathlib import Path
path_root = Path(__file__).parents[1]
sys.path.append(str(path_root)+'/../libs')
sys.path.append(str(path_root)+'/libs')

import libs.yaml as yaml
print("Content-type: application/json\n")
2 changes: 1 addition & 1 deletion src/webapi/readUpdateFile.cgi
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ from urllib.parse import parse_qs, unquote
import zipfile
from pathlib import Path
path_root = Path(__file__).parents[1]
sys.path.append(str(path_root)+'/../libs')
sys.path.append(str(path_root)+'/libs')

import libs.yaml as yaml
print("Content-type: application/json\n")
2 changes: 1 addition & 1 deletion src/webapi/uploadConfigFile.cgi
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ import cgi
from http import cookies
from pathlib import Path
path_root = Path(__file__).parents[1]
sys.path.append(str(path_root)+'/../libs')
sys.path.append(str(path_root)+'/libs')

import libs.yaml as yaml
print("Content-type: application/json\n")
2 changes: 1 addition & 1 deletion src/webapi/uploadUpdateFileInfo.cgi
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ from http import cookies
from pathlib import Path
from urllib.parse import parse_qs, unquote
path_root = Path(__file__).parents[1]
sys.path.append(str(path_root)+'/../libs')
sys.path.append(str(path_root)+'/libs')

import libs.yaml as yaml
print("Content-type: application/json\n")

0 comments on commit 4f4ecef

Please sign in to comment.