Update signal interrupts in script

This commit is contained in:
Dimitris Zlatanidis 2015-09-15 19:40:06 +03:00
parent ee1931d8ea
commit 6d5acfc660
2 changed files with 4 additions and 4 deletions

View file

@ -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()

View file

@ -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()