Skip to content

Commit 2469c1a

Browse files
committed
update
1 parent f9bcb60 commit 2469c1a

4 files changed

Lines changed: 8 additions & 15 deletions

File tree

pythonbrew/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import sys
22
from pythonbrew.basecommand import command_dict, load_all_commands
33
from pythonbrew.baseparser import parser
4+
from pythonbrew.log import logger
45

56
def main():
67
options, args = parser.parse_args(sys.argv[1:])
@@ -12,6 +13,10 @@ def main():
1213
load_all_commands()
1314
command = args[0].lower()
1415
if command not in command_dict:
16+
if command == 'clean':
17+
# note: for some time
18+
logger.info('\nDEPRECATION WARNING: `pythonbrew clean` has been renamed. Please run `pythonbrew cleanup` instead.\n')
19+
return
1520
parser.error("Unknown command: `%s`" % command)
1621
return
1722
command = command_dict[command]

pythonbrew/commands/clean.py

Lines changed: 0 additions & 12 deletions
This file was deleted.

pythonbrew/commands/help.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ def run_command(self, options, args):
2222
for command in commands:
2323
logger.info(" %s: %s" % (command.name, command.summary))
2424
logger.info("\nFurther Instructions:")
25-
logger.info(" http://github.com/utahta/pythonbrew")
25+
logger.info(" https://github.com/utahta/pythonbrew")
2626

2727
HelpCommand()

pythonbrew/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ def extract_downloadfile(content_type, download_file, target_dir):
215215
def get_current_python_path():
216216
"""return: python path or ''
217217
"""
218-
p = subprocess.Popen(['command', '-v', 'python'], stdout=subprocess.PIPE)
219-
return p.communicate()[0].strip()
218+
p = subprocess.Popen('command -v python', stdout=subprocess.PIPE, shell=True)
219+
return to_str(p.communicate()[0].strip())
220220

221221
def set_current_path(path):
222222
fp = open(PATH_ETC_CURRENT, 'w')

0 commit comments

Comments
 (0)