[Tutor] Determining the OS a program runs on
Victor R. Cardona
vcardon@siue.edu
Tue, 2 Apr 2002 00:45:09 -0600
--xHFwDpU9dbj6ez1V
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Mon, Apr 01, 2002 at 06:26:03PM -0600, dman wrote:
> On Mon, Apr 01, 2002 at 02:30:03AM -0600, Victor R. Cardona wrote:
> | How should I detrmine what operating system a program is running on?
> | Should I use sys.platform or os.name?
>=20
> I didn't RTFM, but it looks like it depends what you're looking for.
>=20
> For me :
> sys.platform =3D=3D linux2
> os.name =3D=3D posix
Thanks. I think sys.platform is the way to go in this case.
-v
--=20
Victor R. Cardona
Powered by SuSE Linux 7.1 (i386) Professional
GPG key ID E81B3A1C
Key fingerprint =3D 0147 A234 99C3 F4C5 BC64 F501 654F DB49 E81B 3A1C
--xHFwDpU9dbj6ez1V
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8qVN0ZU/bSegbOhwRAt6IAJ4hspuIppm+jr8qBKoWLalEzUTC2gCfRsjk
nZSYEvDtyKqkwrSctafUhUw=
=fsC+
-----END PGP SIGNATURE-----
--xHFwDpU9dbj6ez1V--