shebangs need to point at python2
authorparmentelat <thierry.parmentelat@inria.fr>
Tue, 11 Dec 2018 08:49:16 +0000 (09:49 +0100)
committerparmentelat <thierry.parmentelat@inria.fr>
Tue, 11 Dec 2018 08:49:16 +0000 (09:49 +0100)
30 files changed:
clientbin/getNodes.py
clientbin/getRecord.py
clientbin/setRecord.py
config/sfa-config
sfa/client/sfaadmin.py
sfa/client/sfaresetgids.py
sfa/dummy/dummyaggregate.py
sfa/importer/__init__.py
sfa/planetlab/nodemanager.py
sfa/planetlab/plaggregate.py
sfa/rspecs/pg_rspec_converter.py
sfa/rspecs/rspec.py
sfa/rspecs/rspec_converter.py
sfa/rspecs/sfa_rspec_converter.py
sfa/rspecs/version.py
sfa/server/sfa-start.py
sfa/util/callids.py
sfa/util/config.py
sfa/util/sfalogging.py
sfa/util/xml.py
sfatables/pretty.py
sfatables/runtime.py
sfatables/sfatables
tests/testAll.py
tests/testInterfaces.py
tests/testKeypair.py
tests/testXrn.py
tools/depgraph2dot.py
tools/py2depgraph.py
wsdl/sfa2wsdl.py

index 89689a5..5cbf5a3 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 import sys
 import os
index 28608f3..97d1794 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 """
 Filters/Prints record objects
index 886b801..742cf95 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 """
 Updates record objects
index 93ebc05..ab59fe8 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # Script for basic access to the SFA configuration file store.
 #
index 95e139f..edfa9c0 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 # pylint: disable=c0111, c0103, w0402, w0622
 
index d4d46f6..dbf548b 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 from __future__ import print_function
 
index dc8384f..2e6fc5b 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 from sfa.util.xrn import Xrn, hrn_to_urn, urn_to_hrn
 from sfa.util.sfatime import utcparse, datetime_to_string
 from sfa.util.sfalogging import logger
index babfc04..90e15e4 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 # pylint: disable=c0111, w1201, w0622
 
index eb00fdc..db8bc0f 100644 (file)
@@ -18,7 +18,7 @@ class NodeManager:
         method = self.method
         sfa_slice_prefix = self.config.SFA_CM_SLICE_PREFIX
         sfa_slice = sfa_slice_prefix + "_sfacm"
-        python = "/usr/bin/python"
+        python = "/usr/bin/python2"
         vserver_path = "/vservers/%s" % (sfa_slice)
         script_path = "/tmp/"
         path = "%(vserver_path)s/%(script_path)s" % locals()
index 0155860..a5a3a0e 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 from collections import defaultdict
 from sfa.util.xrn import Xrn, hrn_to_urn, urn_to_hrn, get_authority, get_leaf
 from sfa.util.sfatime import utcparse, datetime_to_string
index 7de30ef..0fff41e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 from __future__ import print_function
 
 from lxml import etree
index 5a3bc58..fdd9c95 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 from __future__ import print_function
 
index a24b2de..49555c8 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 from __future__ import print_function
 
index 6276004..297d371 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 from __future__ import print_function
 
index 7faf2ab..d2ef55e 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 from sfa.util.sfalogging import logger
 
 
index 1acaca2..cb14adb 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # PlanetLab SFA implementation
 #
index 35c67d4..3206886 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 import threading
 import time
index 89b63fa..013768c 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 import sys
 import os
 import time
index 80d8b3f..0789353 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 """
 A reroutable logger that can handle deep tracebacks
index 82cee73..93d977f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 from lxml import etree
 from sfa.util.faults import InvalidXML
 from sfa.rspecs.elements.element import Element
index 9498aac..87e74fb 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 class Pretty:
     rows = []
index b7c3444..d7eb6d4 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 import sys
 import os
index a06680b..6bf4408 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python 
+#!/usr/bin/env python2 
 
 # This file parses an sfatables command and generates XML files that parameterize
 # matches and targets. Each such XML file defines a rule. Rules are dropped in directories
index 1b9a466..7664c8a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 from testXrn import *
 #from testNamespace import *
 # xxx broken-test
index cf77208..1ab8048 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 import sys
 import os
 import random
index 3d8d40a..8d55e86 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 import sys
 sys.path.append('..')
 
index f681205..68506b2 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 import sys
 import unittest
 
index 97730aa..c9c035b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 # Copyright 2004 Toby Dickenson
 #
 # Permission is hereby granted, free of charge, to any person obtaining
index 5c03f7f..bb3f40f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 # Copyright 2004,2009 Toby Dickenson
 #
 # Permission is hereby granted, free of charge, to any person obtaining
index 6150092..58fa709 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # Sapan Bhatia <sapanb@cs.princeton.edu>
 #