Skip to content

Commit 7d98f7c

Browse files
committed
update prints
1 parent d746e02 commit 7d98f7c

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

src/compas_rhino/install.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ def install(version=None, packages=None):
5555
scripts_path = compas_rhino._get_scripts_path(version)
5656

5757
print('Installing COMPAS packages to Rhino {0} scripts folder:'.format(version))
58-
print('Location scripts folder: {}'.format(scripts_path))
59-
print()
58+
print('{}\n'.format(scripts_path))
6059

6160
results = []
6261
symlinks_to_install = []
@@ -125,9 +124,7 @@ def install(version=None, packages=None):
125124
exit_code = -1
126125

127126
if exit_code == 0 and len(installed_packages):
128-
print()
129-
print('Running post-installation steps...')
130-
print()
127+
print('\nRunning post-installation steps...\n')
131128
if not _run_post_execution_steps(after_rhino_install(installed_packages)):
132129
exit_code = -1
133130

@@ -156,9 +153,7 @@ def _run_post_execution_steps(steps_generator):
156153
post_execution_errors.append(ValueError('Step ran without errors but result is wrongly formatted: {}'.format(str(item))))
157154

158155
if post_execution_errors:
159-
print()
160-
print('One or more errors occurred:')
161-
print()
156+
print('\nOne or more errors occurred:\n')
162157
for error in post_execution_errors:
163158
print(' - {}'.format(repr(error)))
164159

src/compas_rhino/uninstall.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def uninstall(version=None, packages=None):
107107
if not compas_rhino._try_remove_bootstrapper(ipylib_path):
108108
results.append(('compas_bootstrapper', 'ERROR: Cannot remove legacy compas_bootstrapper, try to run as administrator.'))
109109

110-
print('\nThe following packages have been detected and will be uninstalled:')
110+
print('\nThe following packages have been detected and will be uninstalled:\n')
111111

112112
for package, status in results:
113113
print(' {} {}'.format(package.ljust(20), status))
@@ -116,7 +116,7 @@ def uninstall(version=None, packages=None):
116116
exit_code = -1
117117

118118
if exit_code == 0 and uninstalled_packages:
119-
print('\nRunning post-uninstallation steps...')
119+
print('\nRunning post-uninstallation steps...\n')
120120

121121
if not _run_post_execution_steps(after_rhino_uninstall(uninstalled_packages)):
122122
exit_code = -1

0 commit comments

Comments
 (0)