[Tutor] Getting current path

Chris Frost chris@frostnet.advicom.net
Mon, 26 Jul 1999 10:10:29 -0500


--LQksG6bCIzRHxTLp
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

On Mon, Jul 26, 1999 at 08:01:30AM -0700, Emile van Sebille wrote:
> Hi Chris,
>=20
> >>> import os
> >>> os.getcwd()
> 'D:\\Program Files\\Python\\Tools\\idle'
>=20
> HTH
Yes, thanks!

How could I tell if the user simply entered a filename, or if they gave
the entire path (assuming unix if that helps)?

thanks again,
--=20
Chris Frost  |  <http://www.frostnet.advicom.net/chris/>
-------------+------------------------------------------
Public PGP Key:
   Email chris@frostnet.advicom.net with the subject "retrieve pgp key"
   or visit <http://www.frostnet.advicom.net/chris/about/pgp_key.phtml>

--LQksG6bCIzRHxTLp
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: EAj7Vkdi3hAwVZx4b2UkfWbAJ2PH4gFX

iQA/AwUBN5xsVOEzIlbKpewXEQLNYQCfZpiylyjpDG7quQQd6fr9/ftTL70AoJ0C
HnSe0hL6RqLTz/j0hlN/Y2fg
=puey
-----END PGP SIGNATURE-----

--LQksG6bCIzRHxTLp--