.bzr vs _bzr etc

Jari Aalto jari.aalto at cante.net
Thu Dec 1 16:10:57 GMT 2005


John A Meinel <john at arbash-meinel.com> writes:
| Jan Hudec wrote:
| > Python cygwin says:
| >>>> os.name
| > 'posix'
| > ... and should be treated as that.
| > 
| > There is a problem with CYGWIN environment variable, that you can call
| > the program from both cygwin and native shell and it should NOT depend
| > on that. So I think looking whether the python is a cygwin one or a
| > native one is better.
|
| Actually, I always use:
| sys.platform == 'win32'
| sys.platform == 'cygwin'
| sys.platform == 'darwin'
| sys.platform.startswith('linux') # because we have 'linux2'

Cool. Good to know that Python knows the environment.

Jari





More information about the bazaar mailing list