... использование AutoKey 0.81.4 в Ubuntu 10.04
- относительно новый для Linux (<1 год) </li>
- Это первый написанный мной питон
следующий скрипт для AutoKey продолжает сбой со следующей ошибкой.Что я не получаю здесь ??
Script name: 'find files script'
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/autokey/service.py", line 442, in execute
exec script.code in self.scope
File "<string>", line 13, in <module>
AttributeError: 'CalledProcessError' object has no attribute 'output'
Сценарий
import time
time.sleep(0.10)
retCode, args = dialog.input_dialog("Files to Find","enter a file name")
fmt = "find / -name \"{0}\" -type f -print 2>/dev/null "
if retCode == 0:
if len(args) > 0:
cmd = fmt.format(args)
#dialog.info_dialog(title="the command",message=cmd)
try:
rc = system.exec_command(cmd, getOutput=True)
except subprocess.CalledProcessError, e:
dialog.info_dialog(title="the return",message=str(e.output))