[PATCH 02/22] Move some consts to module globals for use in other places (#520146)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 network.py |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/network.py b/network.py
index 484950c..a2ca6bd 100644
--- a/network.py
+++ b/network.py
@@ -42,6 +42,10 @@ _ = lambda x: gettext.ldgettext("anaconda", x)
 import logging
 log = logging.getLogger("anaconda")
 
+sysconfigDir = "/etc/sysconfig"
+netscriptsDir = "%s/network-scripts" % (sysconfigDir)
+networkConfFile = "%s/network" % (sysconfigDir)
+
 class IPError(Exception):
     pass
 
@@ -523,9 +527,9 @@ class Network:
         if len(devices) == 0:
             return
 
-        sysconfig = "%s/etc/sysconfig" % (instPath,)
-        netscripts = "%s/network-scripts" % (sysconfig,)
-        destnetwork = "%s/network" % (sysconfig,)
+        sysconfig = instPath + sysconfigDir
+        netscripts = instPath + netscriptsDir
+        destnetwork = instPath + networkConfFile
 
         if not os.path.isdir(netscripts):
             iutil.mkdirChain(netscripts)
-- 
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux