Skip to content

Commit

Permalink
Update setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
peter88213 committed Jan 24, 2024
1 parent 60dea4d commit dde2d3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ Based on novxlib v1.0.0

- Integrate the toolbar.
If the *noveltree_toolbar* plugin is installed, please delete it with the Plugin manager.

- Refactor.

Based on novxlib v1.0.0

### v1.0.1
Expand Down
6 changes: 3 additions & 3 deletions src/setup.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import os
import sys
import stat
import glob
from shutil import copyfile
from shutil import copy2
from shutil import copytree
from pathlib import Path
from string import Template
Expand Down Expand Up @@ -186,7 +186,7 @@ def install(installDir):

#--- Install the new version.
output(f'Copying "{APP}" ...')
copyfile(APP, f'{installDir}/{APP}')
copy2(APP, f'{installDir}/{APP}')

# Create a starter script.
output(f'Creating starter script ...')
Expand Down Expand Up @@ -217,7 +217,7 @@ def install(installDir):
for file in files:
if not os.path.isfile(f'{cnfDir}{file.name}'):
output(f'Copying "{file.name}" ...')
copyfile(f'{SAMPLE_PATH}{file.name}', f'{cnfDir}{file.name}')
copy2(f'{SAMPLE_PATH}{file.name}', f'{cnfDir}{file.name}')
else:
output(f'Keeping "{file.name}".')
except:
Expand Down

0 comments on commit dde2d3f

Please sign in to comment.