Re: [sabayon] sabayon imports
- From: Mark McLoughlin <markmc redhat com>
- To: John Dennis <jdennis redhat com>
- Cc: sabayon-list <sabayon-list gnome org>
- Subject: Re: [sabayon] sabayon imports
- Date: Tue, 14 Jun 2005 08:37:05 +0100
Hey,
Simple example of this working:
[markmc blaa test-foo]$ mkdir t
[markmc blaa test-foo]$ cat << FOO > test.py
> from t import foo
> FOO
[markmc blaa test-foo]$ cat << FOO > t/foo.py
> print "foo"
> import bar
> FOO
[markmc blaa test-foo]$ cat << FOO > t/bar.py
> print "bar"
> FOO
[markmc blaa test-foo]$ > t/__init__.py
[markmc blaa test-foo]$ python ./test.py
foo
bar
Cheers,
Mark.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]