File: check_python_module.py

package info (click to toggle)
libktoblzcheck 1.59-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 664 kB
  • sloc: cpp: 4,379; python: 172; ansic: 38; sh: 26; makefile: 5
file content (6 lines) | stat: -rw-r--r-- 113 bytes parent folder | download
1
2
3
4
5
6
import importlib,sys
try:
     importlib.import_module(sys.argv[1])
     exit(0)
except ImportError:
     exit(1)