[sysadmin-bin] No execfile anymore
- From: Andrea Veri <averi src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] No execfile anymore
- Date: Thu, 12 Nov 2020 17:21:04 +0000 (UTC)
commit e7b12b7704cd6f5cbf2e8bdd7a8c0c79e471332a
Author: Andrea Veri <averi redhat com>
Date: Thu Nov 12 18:20:50 2020 +0100
No execfile anymore
create-homedirs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/create-homedirs b/create-homedirs
index 797d1bd..82f5354 100755
--- a/create-homedirs
+++ b/create-homedirs
@@ -6,7 +6,7 @@ import shutil
import subprocess
import gnome_ldap_utils as Glu
-execfile('/home/admin/secret/freeipa_ro')
+exec(open("/home/admin/secret/freeipa_ro").read())
glu = Glu.Gnome_ldap_utils(LDAP_GROUP_BASE, LDAP_HOST, LDAP_USER_BASE, LDAP_USER, LDAP_PASSWORD)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]