[wxPython] demo as package?

I am hopelessly confused. I unpacked wxPython-demo-2.2.5.tar.gz and copied
the demo dir to site-packages. site-packages/demo is in my PYTHONPATH. But,
site-packages/demo has to be the current dir for "$ python demo.py" to work.
demo does not contain a setup.py, etc., so I don't know how, or even if I
should, try to make it a package. I suppose I am misunderstanding something
basic. Any clarification would be greatly appreciated. Thanks ahead.

I have demo dir in my home and from inside the demo dir,
$ python demo.py
works nicely. No need to make a package. demo.py calls Main.py which sets
up the main window and based on your selection calls the other packages.

bakki

···

On Sat, 28 Apr 2001 12:34:35 -0500 Albert Wagner <alwagner@tcac.net> wrote:

I am hopelessly confused. I unpacked wxPython-demo-2.2.5.tar.gz and
copied
the demo dir to site-packages. site-packages/demo is in my PYTHONPATH.
But,
site-packages/demo has to be the current dir for "$ python demo.py" to
work.
demo does not contain a setup.py, etc., so I don't know how, or even if
I
should, try to make it a package. I suppose I am misunderstanding
something
basic. Any clarification would be greatly appreciated. Thanks ahead.

--
  .-. | Bakki Kudva__________________Open Source EDMS______
  oo> > Navaco ph: 814-833-2592
/`'\ | 420 Pasadena Drive fax: 603-947-5747
(\_;/) | Erie, PA 16505 http://www.navaco.com/

I think I figured out what caused my confusion. I was under the impression
that placing a *.py file on my PYTHONPATH was like placing an executable on
my PATH. But apparently PYTHONPATH is only for finding imports. Is this
true?

I think I figured out what caused my confusion. I was under the

impression

that placing a *.py file on my PYTHONPATH was like placing an executable

on

my PATH. But apparently PYTHONPATH is only for finding imports. Is this
true?

Yes.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

What os our you using? If Linux, try RPMs, It worked for me.
Wayne

Albert Wagner wrote:

···

I am hopelessly confused. I unpacked wxPython-demo-2.2.5.tar.gz and copied
the demo dir to site-packages. site-packages/demo is in my PYTHONPATH. But,
site-packages/demo has to be the current dir for "$ python demo.py" to work.
demo does not contain a setup.py, etc., so I don't know how, or even if I
should, try to make it a package. I suppose I am misunderstanding something
basic. Any clarification would be greatly appreciated. Thanks ahead.

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users