Minor cleanup for consistency.

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

@ -86,29 +86,11 @@ for f in files:
outfilename = os.path.join(script_dir, f) outfilename = os.path.join(script_dir, f)
shutil.copyfile(f, outfilename) shutil.copyfile(f, outfilename)
shutil.copystat(f, outfilename) shutil.copystat(f, outfilename)
try:
os.remove(bin_name)
except OSError:
pass
print('Creating symlinks.') print('Creating symlinks.')
for i in [bin_name, gui_name, conf_name, intro_name, wraptool_name]:
try: try:
os.unlink(bin_name) os.unlink(i)
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: except FileNotFoundError:
pass pass
os.symlink(symlink_value, bin_name) os.symlink(symlink_value, bin_name)

Loading…
Cancel
Save