|
ENLIGHTEN
Cross-platform desktop GUI for Wasatch Photonics spectrometers
|
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']) | |
| bootstrap.check_if_ui_rebuild_needed | ( | ) |
| bootstrap.fix_path | ( | path | ) |
| bootstrap.action |
| bootstrap.args = parser.parse_args() |
| list bootstrap.cmd = [env_python, fix_path("scripts\\Enlighten.py")] |
| bootstrap.enlighten = subprocess.Popen(cmd) |
| str bootstrap.env_dir = '.env' |
| bootstrap.epilog |
| bootstrap.help |
| bootstrap.installer = subprocess.Popen([env_python, '-m', 'pip', 'install', '-r', 'requirements.txt']) |
| bootstrap.installer_special = subprocess.Popen(tok) |
| str bootstrap.is_mac = 'Darwin' |
| str bootstrap.is_win = 'Windows' |
| bootstrap.parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter) |
| bootstrap.rebuild_env |
| bool bootstrap.rebuild_ui = args.rebuild_ui |
| list bootstrap.tok = [env_python, '-m', 'pip', 'install', 'spc_spectra', 'jcamp'] |
| bootstrap.ui_script = subprocess.Popen(["sh", "scripts/rebuild_resources.sh", "--bootstrap"]) |
| bootstrap.uninstall_pyusb = subprocess.Popen([env_python, '-m', 'pip', 'uninstall', 'pyusb']) |