Minor cleanup for consistency.

pull/272/head
Jussi Pakkanen 9 years ago
parent c24573483d
commit c6a3a1f56a
  1. 28
      install_meson.py

@ -86,30 +86,12 @@ for f in files:
outfilename = os.path.join(script_dir, f)
shutil.copyfile(f, outfilename)
shutil.copystat(f, outfilename)
try:
os.remove(bin_name)
except OSError:
pass
print('Creating symlinks.')
try:
os.unlink(bin_name)
except FileNotFoundError:
pass
try:
os.unlink(gui_name)
except FileNotFoundError:
pass
try:
os.unlink(conf_name)
except FileNotFoundError:
pass
try:
os.unlink(intro_name)
except FileNotFoundError:
pass
try:
os.unlink(wraptool_name)
except FileNotFoundError:
for i in [bin_name, gui_name, conf_name, intro_name, wraptool_name]:
try:
os.unlink(i)
except FileNotFoundError:
pass
os.symlink(symlink_value, bin_name)
os.symlink(guisymlink_value, gui_name)

Loading…
Cancel
Save