[Tutor] Looking for some guidance.
Joshua Banks
syn_ack at comcast.net
Thu Feb 5 14:20:58 EST 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday 05 February 2004 10:59 am, Michael Janssen wrote:
> I would suggest after reading two or three tutorials look out for a
> small task and try to code it down. The good thing is that python
> isn't that hard. Another good thing is that the python community is
> known as newbie friendly :-) So, whenever you're stuck ask for help.
>
> Such a "small task" is an important step on the path to programming,
> because you won't learn it well without actually trying. One tricky
> thing is to determine, which task is small but the rest is done with
> functions, for- and while-loops, if-clauses, string-, lists- and
> dicts-methods and some helpful functions from os, time, re and sys
> modul.
>
> Michael
Great. Thanks Michael. I'll keep pounding away then.
I've looked at the FAQ's and unless I've overlooked something, is there
a preferred directory that I can store my Python scripts. I would like
to have the ability to place the scripts somewhere where I have the
ability to execute them from any directory that I happen to be in. E.G.
If I make my *.py scripts executable and place them in /usr/local/bin I
can execute them from any directory as a normal user just by name, from
eterm or a console shell, instead of having to put in the full path to
the file/script.
>>> import sys
>>> sys.path
['', '/usr/lib/python23.zip', '/usr/lib/python2.3',
'/usr/lib/python2.3/plat-linux2', '/usr/lib/python2.3/lib-tk',
'/usr/lib/python2.3/lib-dynload', '/usr/lib/python2.3/site-packages',
'/usr/lib/portage/pym']
Thanks,
Joshua Banks
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQFAIpeap9X7q/XgeyYRAsb+AJ9EPQwLteyKB+uv21AcBn/GHt7zlACgjQU2
a7thI103j8Ou9Y0YahqGaUc=
=EliO
-----END PGP SIGNATURE-----
More information about the Tutor
mailing list