use either PyGObject (import gi, maintained) or pgi (import pgi, old/unmaintained)
ping #7
This commit is contained in:
parent
4ee7744d7d
commit
6133ffeb7a
@ -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
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
requests
|
||||
pgi
|
||||
pygobject
|
||||
|
||||
Loading…
Reference in New Issue
Block a user