CVE-2022-37966 python:/tests/krb5: call sys.path.insert(0, "bin/python") before any...
[samba.git] / python / samba / tests / krb5 / protected_users_tests.py
index dd32672a55982265f6dd7125f0a4f5bc692cd4c6..929a90da2ef3bc549363b9e9917942d816392578 100755 (executable)
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-import os
 import sys
+import os
+
+sys.path.insert(0, 'bin/python')
+os.environ['PYTHONUNBUFFERED'] = '1'
 
 from functools import partial
 
@@ -47,9 +50,6 @@ from samba.tests.krb5.rfc4120_constants import (
 )
 import samba.tests.krb5.rfc4120_pyasn1 as krb5_asn1
 
-sys.path.insert(0, 'bin/python')
-os.environ['PYTHONUNBUFFERED'] = '1'
-
 global_asn1_print = False
 global_hexdump = False