Skip to content

Commit

Permalink
Fix copying of installation.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Amudtogal committed Dec 17, 2019
1 parent 07ab803 commit faab42d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit faab42d

Please sign in to comment.