update.py 376 B

123456789101112131415
  1. # coding: utf-8
  2. # Copyright (c) Jupyter Development Team.
  3. # Distributed under the terms of the Modified BSD License.
  4. import os
  5. import shutil
  6. from .commands import build, get_app_dir
  7. here = os.path.dirname(__file__)
  8. app_dir = get_app_dir()
  9. build(updating=True)
  10. target = os.path.join(app_dir, 'staging', 'yarn.lock')
  11. shutil.copy(target, os.path.join(here, 'yarn.app.lock'))