]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/commitdiff
Fix python script ovh path
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 17 Sep 2017 22:37:01 +0000 (00:37 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 17 Sep 2017 22:37:01 +0000 (00:37 +0200)
python/reinstall_vps_server.py

index 2eea203bac8df250767badffa3361c3512772aaa..52fdc39c21fcf217563d0776d4d537360816dffb 100644 (file)
@@ -1,6 +1,10 @@
 # -*- encoding: utf-8 -*-
 import json
-from ovh import ovh
+try:
+    from ovh import ovh
+except ImportError:
+    # In case it's installed globally
+    import ovh
 import sys
 import ovh_helper