Re: [sabayon] sabayon imports



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]