On Mon, 2012-06-11 at 09:31 +0200, Renà Dudfield wrote: > By realtive imports, I mean so people can do: > python scg/examples/helloworld.py > > Or: > cd scg/examples/ > python helloworld.py > With the test.py example, it was already possible to do the latter. I've just added support to run it with the former command also. I'll add the same support into the other examples soon, just as long as this extra unrelated code doesn't appear in the tutorial. Mike's right about relative imports not being possible, but you can get the same effect from a little path mangling. > For those not familiar with launchpad... > You need bazaar (http://bazaar.canonical.com/en/) > It's preferable to use the tarball release available on the right side of the page: https://launchpad.net/simplegc/beta/0.1.4/+download/sgc-0.1.4.tar.gz The development code may break from time to time when I'm in the middle of working on a new feature. > Could the tutorials be based on examples? Then people can run the > example, and learn that way as well. I'd like to keep the tutorials short and concise. How about instead, I'll add an extra tutorial at the end which walks you through creating an example program? And I'll add a 'more info' link to the other tutorials linking to the appropriate parts of this example?
Attachment:
signature.asc
Description: This is a digitally signed message part