This commit is contained in:
utahta
2011-07-10 21:17:05 +09:00
parent f9bcb60638
commit 2469c1a7af
4 changed files with 8 additions and 15 deletions
+2 -2
View File
@@ -215,8 +215,8 @@ def extract_downloadfile(content_type, download_file, target_dir):
def get_current_python_path():
"""return: python path or ''
"""
p = subprocess.Popen(['command', '-v', 'python'], stdout=subprocess.PIPE)
return p.communicate()[0].strip()
p = subprocess.Popen('command -v python', stdout=subprocess.PIPE, shell=True)
return to_str(p.communicate()[0].strip())
def set_current_path(path):
fp = open(PATH_ETC_CURRENT, 'w')