BioImager  5.0.0
A .NET microscopy imaging application based on Bio library. Supports various microscopes by using imported libraries & GUI automation. Supports XInput game controllers to move stage, take images, run ImageJ macros on images or Bio C# scripts.
Loading...
Searching...
No Matches
microscope.win32 Namespace Reference

Classes

class  MicroscopeWindowsService
 

Functions

 handle_command_line ()
 

Function Documentation

◆ handle_command_line()

microscope.win32.handle_command_line ( )

Definition at line 128 of file win32.py.

128def handle_command_line():
129 if len(sys.argv) == 1:
130 print("\nNo action specified.\n", file=sys.stderr)
131 sys.exit(1)
132 if sys.argv[1].lower() in ["install", "update"]:
133 if len(sys.argv) == 2:
134 print("\nNo config file specified.\n")
135 sys.exit(1)
136 configfile = sys.argv.pop()
137 win32serviceutil.HandleCommandLine(MicroscopeWindowsService)
138 # Set persistent data on service
139 MicroscopeWindowsService.set_config_file(configfile)
140 else:
141 win32serviceutil.HandleCommandLine(MicroscopeWindowsService)
142
143