Re: [Tutor] locating python scripts
max baseman gmail.com> writes: > > hey i just have a small question, doesn't have much to do with > programing but it has to do with python. > anyways Im running a apple computer version 10.4 and have been > keeping my scripts in the user folder i was wondering where and how i > can change the files that python looks in when looking for programs i > would like to make it so that i can have separate folders in the user > folder for different projects > any help would be great > thanks > > ___ > Tutor maillist - Tutor python.org > http://mail.python.org/mailman/listinfo/tutor > > I've always just added paths to the PYTHONPATH environment variable. It's value is now: /home/brendan/scripts/Python:/home/brendan/lib/python:. This is on Linux, but I don't see why it shouldn't work identically on OSX. Cheers, - Brendan ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] help, thanks very much.
bill.wu gmail.com> writes: > > > > i am new guy. > i ask a easy question. > > why the first one have"x",the second one doesn't have "x". what > is different? when write "x",when don't write "x". > > in my point,the second one don't def variable. > > Variable scope. By declaring the x as "global", any changes to x in func() will affect x outside the function, as well. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor