17
0

use either PyGObject (import gi, maintained) or pgi (import pgi, old/unmaintained)

ping #7
This commit is contained in:
Daniel Lenski 2020-03-29 09:53:03 -07:00
parent 4ee7744d7d
commit 6133ffeb7a
2 changed files with 11 additions and 2 deletions

View File

@ -1,6 +1,15 @@
#!/usr/bin/env python3
import gi
try:
import gi
except ImportError:
try:
import pgi as gi
except ImportError:
gi = None
if gi is None:
raise ImportError("Either gi (PyGObject) or pgi module is required.")
import argparse
import pprint
import urllib

View File

@ -1,2 +1,2 @@
requests
pgi
pygobject