Importing custom modules in Gjs
- From: alex diavatis <alexis diavatis gmail com>
- To: gnome-shell-list <gnome-shell-list gnome org>
- Subject: Importing custom modules in Gjs
- Date: Sun, 5 Aug 2012 17:02:46 +0300
Hello,
I am starting an App with Gjs and Clutter but I am stacked as I cannot import custom classes in gjs path, from inside the application and not from /usr/bin/gjs
I am trying something like:
const Me = imports.searchPath.unshift('.');
const myConf = Me.conf;
which imports the conf.js file, but then I want to use inside there for example
let black_c = new Clutter.Color( {red:0, blue:0, green:0, alpha:255} );
and I cannot find a way to call this variable from my main.js file.
- alex
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]