[PATCH 1/4] Move the import constants line below setupUpdates

Martin Sivak msivak at redhat.com
Tue Dec 18 13:37:46 UTC 2012


---
 anaconda | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/anaconda b/anaconda
index d0b945b..cc02a5c 100755
--- a/anaconda
+++ b/anaconda
@@ -32,8 +32,6 @@
 
 import atexit, sys, os, re, time, subprocess
 from tempfile import mkstemp
-from pyanaconda import constants
-
 # keep up with process ID of the window manager if we start it
 wm_pid = None
 
@@ -643,6 +641,8 @@ if __name__ == "__main__":
     setupPythonUpdates()
     setupPythonPath()
 
+    from pyanaconda import constants
+
     # do this early so we can set flags before initializing logging
     from pyanaconda.flags import flags
     (opts, args, depr) = parseOptions(cmdline=flags.cmdline)
-- 
1.7.11.7



More information about the anaconda-patches mailing list