diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-02-13 13:55:04 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-02-13 13:55:04 +0300 |
commit | 6c9aa76d2141d527eee086db8398db4b3cd5bb84 (patch) | |
tree | dd9f7fb02e1f686b617d936e8cbb7601a6e3d3dc /SConstruct | |
parent | ea8c807db004f33aa76f9df74c6449adf22e66e1 (diff) |
revert joes commit and apply change from Aligorith.
remove scripts dir only.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct index 9d57b230770..aa151e4e04c 100644 --- a/SConstruct +++ b/SConstruct @@ -193,9 +193,10 @@ if not env['BF_FANCY']: # NOTE: only do the scripts directory for now, otherwise is too disruptive for developers # TODO: perhaps we need an option (off by default) to not do this altogether... if not env['WITHOUT_BF_INSTALL'] and not env['WITHOUT_BF_OVERWRITE_INSTALL']: - if os.path.isdir(env['BF_INSTALLDIR']): - print B.bc.OKGREEN + "Clearing installation directory%s: %s" % (B.bc.ENDC, os.path.abspath(env['BF_INSTALLDIR'])) - shutil.rmtree(env['BF_INSTALLDIR']) + scriptsDir = env['BF_INSTALLDIR'] + os.sep + '.blender' + os.sep + 'scripts' + if os.path.isdir(scriptsDir): + print B.bc.OKGREEN + "Clearing installation directory%s: %s" % (B.bc.ENDC, os.path.abspath(scriptsDir)) + shutil.rmtree(scriptsDir) SetOption('num_jobs', int(env['BF_NUMJOBS'])) |