Skip to content

Commit

Permalink
use idom.config to set dist dir
Browse files Browse the repository at this point in the history
  • Loading branch information
rmorshea committed Mar 25, 2021
1 parent e226a20 commit bfff8d2
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions panel/pane/idom.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,13 @@ def install(cls, packages, ignore_installed=False, fallback=None):
The fallback to display while the component is loading
"""
import idom
import idom.client.manage
idom.client.manage.APP_DIR = DIST_DIR / 'idom'
idom.client.manage.BUILD_DIR = DIST_DIR / 'idom' / 'build'
idom.client.manage.WEB_MODULES_DIR = DIST_DIR / 'idom' / 'build' / 'web_modules'
from idom.config import IDOM_CLIENT_BUILD_DIR
idom_dist_dir = DIST_DIR / "idom"
if IDOM_CLIENT_BUILD_DIR.get() != idom_dist_dir:
IDOM_CLIENT_BUILD_DIR.set(idom_dist_dir)
# just in case packages were already installed but the build hasn't been
# copied over to DIST_DIR yet.
ignore_installed = True
return idom.install(packages, ignore_installed, fallback)

@classmethod
Expand Down

0 comments on commit bfff8d2

Please sign in to comment.