Stuart Axon wrote:
Is changing sys.path threadsafe though ?
IE If my program (or gedit plugin, or the ide) runs a bot, then will my
programs sys.path be affected?
my wild guess is that it affects the whole pythonpath. Not sure about
the possible consequences of that :/
________________________________
From: ricardo lafuente <[email protected]>
To: [email protected]
Sent: Friday, July 3, 2009 2:54:51 PM
Subject: Re: [shoebot-devel] Processing lib in nodebox + module import from
current directory doesn't work
wow, well spotted!
so the sys.path appending should happen in Bot.run(), right before the
script is executed. Where this call should go had me stumped for quite
a long time -- this means that it's also the place where the libs path
should be placed to solve the lib issue! Kudos to you Stu :)
right now the old run behaviour is to get the script file contents; now
we'll need to get its path as well. I'll be looking into this - thanks
again :)
Stuart Axon wrote:
A quick update:
We need to add append the path of the bot to sys.path before running it;
When I added it's path as the first line
sys.path.append(r'C:\usr\shoebot\src\shoebot\filesystem\shoebot-filestructure\examples\processing\ch03')
it worked first time.
________________________________
From: Stuart Axon <[email protected]>
To: [email protected]
Sent: Friday, July 3, 2009 12:06:12 AM
Subject: Re: [shoebot-devel] Processing lib in nodebox + module import from
current directory doesn't work
If I get time I'll have a look at getting his examples to work (the module
bit); not sure where we'd put them in relation to the other
stuff we ship
________________________________
From: Dave Crossland <[email protected]>
To: [email protected]
Sent: Thursday, July 2, 2009 11:44:21 PM
Subject: Re: [shoebot-devel] Processing lib in nodebox + module import from
current directory doesn't work
Good work! :)
Regards, Dave
On 2 Jul 2009, 11:22 PM, "Stuart Axon" <[email protected]> wrote:
http://www.multiply.org/notebook/archives/2008/08/first-visualizing-data-nodebox-conversions.html
This guy seems to have ported a couple of examples from the processing.org book
"Visualizing Data".
The example doesn't work in shoebox, as it imports modules from the current directory.
I've added a ticket for this, #88
https://code.goto10.org/projects/shoebot/ticket/88
_______________________________________________
Shoebot-devel mailing list
[email protected]http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
________________________________
_______________________________________________
Shoebot-devel mailing list
[email protected] http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
------------------------------------------------------------------------
_______________________________________________
Shoebot-devel mailing list
[email protected]
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
_______________________________________________
Shoebot-devel mailing list
[email protected]
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net