diff --git a/setup.py b/setup.py index 6e8aae233..33bcfea09 100755 --- a/setup.py +++ b/setup.py @@ -148,9 +148,6 @@ def updateFolderContents(src, dst): if install_to: addonpath = install_to - shutil.copy2(path.join(phoboshome, 'installation.conf'), - path.join(addonpath, 'installation.conf')) - # install addon if path.exists(addonpath): shutil.rmtree(addonpath) # always clean install folder @@ -164,6 +161,9 @@ def updateFolderContents(src, dst): else: print('Copied addon files to ' + addonpath + '.') + shutil.copy2(path.join(phoboshome, 'installation.conf'), + path.join(addonpath, 'installation.conf')) + # install optional startup blend if startup_preset: shutil.copy(path.join(phoboshome, 'config', 'startup.blend'), blenderconfigpath)