Bug 26839 - Не работают скрипты
: Не работают скрипты
Status: NEW
: Sisyphus
(All bugs in Sisyphus/qtscriptbindings)
: unstable
: all Linux
: P3 normal
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2012-01-20 13:21 by
Modified: 2012-01-20 13:21 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2012-01-20 13:21:03
$ qsexec /usr/share/doc/qtscriptbindings-0.1.0/examples/BasicDrawing.qs
"    ReferenceError: Can't find variable: QWidget
<anonymous>()@/usr/share/doc/qtscriptbindings-0.1.0/examples/BasicDrawing.qs:43

" 
Читаю /usr/share/doc/qtscriptbindings-0.1.0/README.qsexec:

The qsexec tool doesn't import any script extensions (like qt.core) itself.
A script that needs a script extension has to load it via 
qs.script.importExtension("myextension");

Копирую BasicDrawing.qs к себе в домашнюю директорию, вписываю в самое начало:

qs.script.importExtension("qt.core");

Однако:

$ qsexec AnalogClock.qs 
"    Error: Unable to import qt.core: no such extension
<anonymous>()@AnalogClock.qs:24

" 

$ rpm -q qtscriptbindings
qtscriptbindings-0.1.0-alt2

Дело происходит на t6/branch