From 465ba54b5eb4e28ab7b5410a2415704fe92eea54 Mon Sep 17 00:00:00 2001 From: Elijah Sawyers Date: Fri, 19 Jul 2019 12:14:35 -0500 Subject: [PATCH] Fixed the install script, input error, and script command error --- autostack/__main__.py | 4 ++-- autostack/autostack-terminal | 2 +- setup.py | 3 ++- uninstall.sh | 4 +++- 4 files changed, 8 insertions(+), 5 deletions(-) mode change 100644 => 100755 autostack/autostack-terminal mode change 100644 => 100755 uninstall.sh diff --git a/autostack/__main__.py b/autostack/__main__.py index 4c1bd44..1d082f3 100644 --- a/autostack/__main__.py +++ b/autostack/__main__.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python3 ''' Authors: Elijah Sawyers, Benjamin Sanders Emails: elijahsawyers@gmail.com, ben.sanders97@gmail.com @@ -9,6 +8,7 @@ ''' from __future__ import print_function +from builtins import input import os from .web_scraper.stack_overflow_scraper import StackOverflowScraper @@ -89,7 +89,7 @@ def main(): # If the user's question has been answered, don't keep looping over posts. while True: print('Did this answer your question? (Y/n): ', end='') - question_answered = raw_input() + question_answered = input() if str(question_answered) == 'Y' or str(question_answered) == 'n': break if str(question_answered) == 'Y': diff --git a/autostack/autostack-terminal b/autostack/autostack-terminal old mode 100644 new mode 100755 index b346b33..14707db --- a/autostack/autostack-terminal +++ b/autostack/autostack-terminal @@ -1,2 +1,2 @@ #!/usr/bin/env bash -script -q -F /tmp/monitorPipe \ No newline at end of file +bash -c "script -q -F /tmp/monitorPipe" \ No newline at end of file diff --git a/setup.py b/setup.py index be47d3d..bff5318 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setuptools.setup( # General setup information. name='autostack', - version='0.0.9', + version='0.0.10', packages=setuptools.find_packages(exclude=['tests']), scripts=[ 'autostack/autostack-terminal' @@ -25,6 +25,7 @@ 'termcolor>=1.1.0', 'lxml>=4.3.2', 'beautifulsoup4>=4.7.1', + 'future>=0.17.1', ], # Meta data. diff --git a/uninstall.sh b/uninstall.sh old mode 100644 new mode 100755 index e119e0f..200d2f8 --- a/uninstall.sh +++ b/uninstall.sh @@ -1 +1,3 @@ -pip3 uninstall autostack \ No newline at end of file +rm /usr/local/bin/autostack +rm /usr/local/bin/autostack-terminal +rm -rf autostack.egg-info \ No newline at end of file