summaryrefslogtreecommitdiffstats
path: root/examples/import-envjsnatives.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/import-envjsnatives.js')
-rw-r--r--examples/import-envjsnatives.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/import-envjsnatives.js b/examples/import-envjsnatives.js
new file mode 100644
index 0000000..f6bff3c
--- /dev/null
+++ b/examples/import-envjsnatives.js
@@ -0,0 +1,6 @@
+// This is not an actual example, it's just a helper
+// when using e.g. $QTDIR/examples/script/qscript to
+// run examples.
+// Evaluate this file after evaluating env.js
+// to establish the full Envjs/QtScript environment.
+qt.script.importExtension("envjsnatives");