Skip to content

Commit

Permalink
fixes to disable JS9 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
o-smirnov committed Oct 19, 2023
1 parent 7a4c959 commit 27fc41a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ RUN docker-apt-install --no-install-recommends \
libxss1 \
libxtst6 \
thunderbird \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives
&& apt-get clean && rm -rf /var/lib/apt/lists/* /var/cache/apt/archives


# crazy list starting with npm needed for chromium within puppeteer. Don't ask me why.
Expand All @@ -62,7 +62,7 @@ ADD . /radiopadre
## override due to problems with 1.4 in containers
#ARG RADIOPADRE_CARTA_VERSION=1.3.1

ARG CLIENT_BRANCH=b1.2.1
ARG CLIENT_BRANCH=b1.2.2

RUN git clone -b $CLIENT_BRANCH https://github.com/ratt-ru/radiopadre-client.git
RUN pip3 install --no-cache-dir -e /radiopadre-client
Expand Down
2 changes: 1 addition & 1 deletion bin/setup-radiopadre-virtualenv
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ if PUPPETEER_VERSION:
# "'")

# install JS9
js9_status_file = "{PADRE_VENV}/js9status"
js9_status_file = f"{PADRE_VENV}/js9status"

if options.no_js9:
if os.path.exists(js9_status_file):
Expand Down
1 change: 1 addition & 0 deletions radiopadre/fitsfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,7 @@ def _action_buttons_(self, context, defaults=None, **kw):

subs = globals().copy()
subs.update(display_id=context.div_id, **locals())
code = ""

if not js9.JS9_ERROR:
FITSFile._insert_js9_postscript(context.postscript, subs, defaults=defaults)
Expand Down
5 changes: 2 additions & 3 deletions radiopadre_kernel/js9/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def preinit_js9():
import iglesia


global JS9_HELPER_PORT, JS9_DIR
global JS9_ERROR, JS9_HELPER_PORT, JS9_DIR
JS9_DIR = iglesia.JS9_DIR
JS9_HELPER_PORT = iglesia.JS9HELPER_PORT

Expand All @@ -33,9 +33,8 @@ def preinit_js9():
return

try:
global JS9_ERROR
if not os.path.exists(JS9_DIR):
raise JS9Error(f"{JS9_DIR} does not exist")
raise JS9Error(f"JS9 directory '{JS9_DIR}' does not exist")

message(f"Using JS9 install in {JS9_DIR}")

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from setuptools.command.develop import develop
from wheel.bdist_wheel import bdist_wheel

__version__ = "1.2.1"
__version__ = "1.2.2"

build_root = os.path.dirname(__file__)

Expand Down

0 comments on commit 27fc41a

Please sign in to comment.