update_config_0.4.x-0.5.py
changeset 119 014335f38962
parent 118 cf85d78486ce
child 130 9dca3e898ddb
--- a/update_config_0.4.x-0.5.py	Wed Aug 19 09:52:24 2009 +0000
+++ b/update_config_0.4.x-0.5.py	Thu Aug 20 01:22:53 2009 +0000
@@ -14,8 +14,9 @@
 def get_config_file():
     f = None
     for d in ('/root', '/usr/local/etc', '/etc'):
-        if os.path.isfile(d+'/vmm.cfg'):
-            f = d+'/vmm.cfg'
+        tmp = os.path.join(d, 'vmm.cfg')
+        if os.path.isfile(tmp):
+            f = tmp
             break
     if f:
         return f