Revize 675e5fb6
Přidáno uživatelem Jakub Šilhavý před více než 2 roky(ů)
client/src/main.py | ||
---|---|---|
16 | 16 |
"""Initializes logging, api client, and usb detector. |
17 | 17 |
|
18 | 18 |
The function checks whether the path to the logger configuration |
19 |
file exists. The path is defined in the logger section of the
|
|
19 |
file is valid or not. The path is defined in the logger section of the
|
|
20 | 20 |
main configuration file. It also calls api_client_set_config and |
21 |
usb_detector_set_config to initialize the application. |
|
21 |
usb_detector_set_config to fully initialize the application.
|
|
22 | 22 |
|
23 | 23 |
:param app_config: instance of Config (config manager) |
24 | 24 |
""" |
... | ... | |
39 | 39 |
if __name__ == "__main__": |
40 | 40 |
"""Main entry point of the application. |
41 | 41 |
|
42 |
The application expects one parameter to be passed it -
|
|
42 |
The application expects one parameter to be passed in -
|
|
43 | 43 |
the path to the configuration file. The user can print out help |
44 | 44 |
using the '-h' option. |
45 | 45 |
""" |
46 |
# Make sure that there is only one running instance of this application. |
|
46 |
# Make sure that there is only one running instance (process) of this application.
|
|
47 | 47 |
try: |
48 | 48 |
app_instance = singleton.SingleInstance() |
49 | 49 |
except singleton.SingleInstanceException: |
Také k dispozici: Unified diff
re #9422 Fixed typos