Bug 26839 - Не работают скрипты
Summary: Не работают скрипты
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: qtscriptbindings (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Sergey V Turchin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-20 13:21 MSK by enp
Modified: 2012-01-20 13:21 MSK (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description enp 2012-01-20 13:21:03 MSK
$ 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