From bf30cd39ab3e6ec57091fbd3bdf737021132a0e5 Mon Sep 17 00:00:00 2001 From: Harshad Sharma Date: Sat, 17 Jun 2017 00:34:55 +0530 Subject: [PATCH] Since we now depend on the interpreter path in installer template, and because that path isn't shown to users anymore, remove the fanciness. --- examples/shell.py | 1 - src/qutescript/installer.py | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/examples/shell.py b/examples/shell.py index 1136cfd..73aaea1 100755 --- a/examples/shell.py +++ b/examples/shell.py @@ -25,7 +25,6 @@ def shell_command(request): text = str(r, 'utf-8').strip() if args.insert: request.send_command('insert-text {}'.format(text)) - # request.send_text(text) else: request.send_text(text) diff --git a/src/qutescript/installer.py b/src/qutescript/installer.py index e8cd831..88e336c 100644 --- a/src/qutescript/installer.py +++ b/src/qutescript/installer.py @@ -37,12 +37,7 @@ def setup_permissions(path): def get_interpreter(): - interpreter = sys.executable - if interpreter.startswith('/usr') or interpreter.startswith('/opt'): - interpreter = '' - else: - interpreter = interpreter + ' ' - return interpreter + return sys.executable def link_to_qutebrowser_userscripts_directory(path, name):