[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14574] trunk/blender/SConstruct: * change BF_CONFIG so that it is understood as 'user-config.py' instead of config/platform-config.py it tried to do before.

Nathan Letwory jesterking at letwory.net
Sun Apr 27 22:17:14 CEST 2008


Revision: 14574
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14574
Author:   jesterking
Date:     2008-04-27 22:17:14 +0200 (Sun, 27 Apr 2008)

Log Message:
-----------
* change BF_CONFIG so that it is understood as 'user-config.py' instead of config/platform-config.py it tried to do before. If defined, it overrides the search (and potential use) of user-config.py.
   It didn't work before anyway, so this change should affect nobody.
   usage: scons BF_CONFIG=someconfigfile

Modified Paths:
--------------
    trunk/blender/SConstruct

Modified: trunk/blender/SConstruct
===================================================================
--- trunk/blender/SConstruct	2008-04-27 19:51:49 UTC (rev 14573)
+++ trunk/blender/SConstruct	2008-04-27 20:17:14 UTC (rev 14574)
@@ -143,7 +143,7 @@
 
 env['OURPLATFORM'] = platform
 
-configfile = B.arguments.get('BF_CONFIG', 'config'+os.sep+platform+'-config.py')
+configfile = 'config'+os.sep+platform+'-config.py'
 
 if os.path.exists(configfile):
     print B.bc.OKGREEN + "Using config file: " + B.bc.ENDC + configfile
@@ -157,13 +157,14 @@
     # Needed for gui programs, console programs should do without it
     env.Append(LINKFLAGS=['-mwindows'])
 
+userconfig = B.arguments.get('BF_CONFIG', 'user-config.py')
 # first read platform config. B.arguments will override
 optfiles = [configfile]
-if os.path.exists('user-config.py'):
-    print B.bc.OKGREEN + "Using config file: " + B.bc.ENDC + 'user-config.py'
-    optfiles += ['user-config.py']
+if os.path.exists(userconfig):
+    print B.bc.OKGREEN + "Using user-config file: " + B.bc.ENDC + userconfig
+    optfiles += [userconfig]
 else:
-    print B.bc.WARNING + 'user-config.py' + " not found, no user overrides" + B.bc.ENDC
+    print B.bc.WARNING + userconfig + " not found, no user overrides" + B.bc.ENDC
 
 opts = btools.read_opts(optfiles, B.arguments)
 opts.Update(env)





More information about the Bf-blender-cvs mailing list