Skip to content
Snippets Groups Projects
Commit a67dd19d authored by Marco Biasini's avatar Marco Biasini
Browse files

also symlink lddt and chemdict_tool

Fixes BZDNG-386
parent c89fcc1c
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ class TerminalUsageDialog(QDialog): ...@@ -45,7 +45,7 @@ class TerminalUsageDialog(QDialog):
return str(self.path_combo.currentText()) return str(self.path_combo.currentText())
def _CreateLinks(bin_dir, sel_dir): def _CreateLinks(bin_dir, sel_dir):
for bin in ('ost', 'dng',): for bin in ('ost', 'dng','lddt', 'chemdict_tool'):
if os.path.exists(os.path.join(sel_dir, bin)): if os.path.exists(os.path.join(sel_dir, bin)):
os.unlink(os.path.join(sel_dir, bin)) os.unlink(os.path.join(sel_dir, bin))
os.system('ln -s "%s" "%s"' % (os.path.join(bin_dir, bin), os.system('ln -s "%s" "%s"' % (os.path.join(bin_dir, bin),
...@@ -63,7 +63,7 @@ def InstallTerminalPrograms(): ...@@ -63,7 +63,7 @@ def InstallTerminalPrograms():
if not os.access(sel_path, os.W_OK): if not os.access(sel_path, os.W_OK):
admin_rights=AdminRights() admin_rights=AdminRights()
if admin_rights.Acquire(): if admin_rights.Acquire():
for bin in ('ost', 'dng'): for bin in ('ost', 'dng', 'lddt', 'chemdict_tool'):
admin_rights.CreateLink(os.path.join(bin_dir, bin), admin_rights.CreateLink(os.path.join(bin_dir, bin),
os.path.join(sel_path, bin)) os.path.join(sel_path, bin))
admin_rights.Release() admin_rights.Release()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment