]> code.communitydata.science - nu-vpn-proxy.git/blobdiff - gp-saml-gui.py
Fixing typo in connecting to kibo via SSH
[nu-vpn-proxy.git] / gp-saml-gui.py
index 54d14c2693d502a85657f8bfa7c51c2394b2e831..d6f8f15c4bbf2a517b6daf2c3946a18e688c32f5 100755 (executable)
@@ -1,6 +1,15 @@
 #!/usr/bin/env python3
 
 #!/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
 import argparse
 import pprint
 import urllib

Community Data Science Collective || Want to submit a patch?