mirror of
https://github.com/dwinkler1/np.git
synced 2026-05-23 13:43:31 -04:00
17 lines
294 B
Python
Executable file
17 lines
294 B
Python
Executable file
#!/usr/bin/env python3
|
|
import sys
|
|
|
|
packages = ["requests"]
|
|
failed = []
|
|
|
|
for pkg in packages:
|
|
try:
|
|
__import__(pkg)
|
|
except ImportError:
|
|
failed.append(pkg)
|
|
|
|
if failed:
|
|
sys.stderr.write(f"FAIL: {', '.join(failed)}\n")
|
|
sys.exit(1)
|
|
|
|
print("PASS: all packages loaded")
|