mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-17 06:11:35 +01:00
Update signal interrupts in script
This commit is contained in:
parent
ee1931d8ea
commit
6d5acfc660
2 changed files with 4 additions and 4 deletions
|
@ -32,7 +32,11 @@
|
|||
Slpkg is a user-friendly package manager for Slackware installations
|
||||
"""
|
||||
|
||||
import signal
|
||||
from slpkg.main import main
|
||||
from slpkg.interrupts import signal_handler
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
signal.signal(signal.SIGINT, signal_handler)
|
||||
main()
|
||||
|
|
|
@ -24,11 +24,8 @@
|
|||
|
||||
import os
|
||||
import sys
|
||||
import signal
|
||||
import getpass
|
||||
|
||||
from slpkg.interrupts import signal_handler
|
||||
|
||||
from slpkg.load import Regex
|
||||
from slpkg.desc import PkgDesc
|
||||
from slpkg.messages import Msg
|
||||
|
@ -663,5 +660,4 @@ def main():
|
|||
|
||||
|
||||
if __name__ == "__main__":
|
||||
signal.signal(signal.SIGINT, signal_handler)
|
||||
main()
|
||||
|
|
Loading…
Reference in a new issue