Import sys in executable.
This commit is contained in:
parent
8811a1c293
commit
8e29a10e3a
1 changed files with 3 additions and 1 deletions
|
|
@ -24,6 +24,8 @@ import argparse
|
|||
import json
|
||||
import logging
|
||||
import logging.handlers
|
||||
import sys
|
||||
|
||||
from uplink.uplink import Uplink
|
||||
|
||||
# Version format: MAJOR.FEATURE.FIXES
|
||||
|
|
@ -109,7 +111,7 @@ if __name__ == "__main__":
|
|||
except Exception as err:
|
||||
# TODO: Replace all lines like this with generic Python logging
|
||||
print(str("Uplink: Configuration Error!"))
|
||||
exit(1)
|
||||
sys.exit(1)
|
||||
|
||||
uplink = Uplink("/tmp/uplink.pid", _config)
|
||||
uplink.start()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue