openflexure-microscope-server/openflexure_microscope/install.py
2020-10-13 15:02:19 +01:00

17 lines
287 B
Python

import os
from pynpm import NPMPackage
dir_path = os.path.dirname(os.path.realpath(__file__))
pkg_path = os.path.join(dir_path, "api", "static", "package.json")
pkg = NPMPackage(pkg_path)
def install():
pkg.install()
def build():
pkg.install()
pkg.run_script("build")