ENLIGHTEN
Cross-platform desktop GUI for Wasatch Photonics spectrometers
Loading...
Searching...
No Matches
bootstrap Namespace Reference

Functions

 check_if_ui_rebuild_needed ()
 
 fix_path (path)
 

Variables

 action
 
 args = parser.parse_args()
 
list cmd = [env_python, fix_path("scripts\\Enlighten.py")]
 
 enlighten = subprocess.Popen(cmd)
 
str env_dir = '.env'
 
str env_python = f"{env_dir}/enlighten/Scripts/python"
 
 epilog
 
 help
 
 installer = subprocess.Popen([env_python, '-m', 'pip', 'install', '-r', 'requirements.txt'])
 
 installer_special = subprocess.Popen(tok)
 
str is_mac = 'Darwin'
 
str is_win = 'Windows'
 
 parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
 
 rebuild_env
 
 rebuild_ui = args.rebuild_ui
 
list tok = [env_python, '-m', 'pip', 'install', 'spc_spectra', 'jcamp']
 
 ui_script = subprocess.Popen(["sh", "scripts/rebuild_resources.sh", "--bootstrap"])
 
 uninstall_pyusb = subprocess.Popen([env_python, '-m', 'pip', 'uninstall', 'pyusb'])
 

Function Documentation

◆ check_if_ui_rebuild_needed()

bootstrap.check_if_ui_rebuild_needed ( )

◆ fix_path()

bootstrap.fix_path ( path)

Variable Documentation

◆ action

bootstrap.action

◆ args

bootstrap.args = parser.parse_args()

◆ cmd

list bootstrap.cmd = [env_python, fix_path("scripts\\Enlighten.py")]

◆ enlighten

bootstrap.enlighten = subprocess.Popen(cmd)

◆ env_dir

str bootstrap.env_dir = '.env'

◆ env_python

str bootstrap.env_python = f"{env_dir}/enlighten/Scripts/python"

◆ epilog

bootstrap.epilog

◆ help

bootstrap.help

◆ installer

bootstrap.installer = subprocess.Popen([env_python, '-m', 'pip', 'install', '-r', 'requirements.txt'])

◆ installer_special

bootstrap.installer_special = subprocess.Popen(tok)

◆ is_mac

str bootstrap.is_mac = 'Darwin'

◆ is_win

str bootstrap.is_win = 'Windows'

◆ parser

bootstrap.parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)

◆ rebuild_env

bootstrap.rebuild_env
Initial value:
1= args.rebuild_env or not (os.path.exists(env_dir) and
2 os.path.exists("enlighten/assets/uic_qrc/enlighten_layout.py"))

◆ rebuild_ui

bool bootstrap.rebuild_ui = args.rebuild_ui

◆ tok

list bootstrap.tok = [env_python, '-m', 'pip', 'install', 'spc_spectra', 'jcamp']

◆ ui_script

bootstrap.ui_script = subprocess.Popen(["sh", "scripts/rebuild_resources.sh", "--bootstrap"])

◆ uninstall_pyusb

bootstrap.uninstall_pyusb = subprocess.Popen([env_python, '-m', 'pip', 'uninstall', 'pyusb'])