.bzr vs _bzr etc

John A Meinel john at arbash-meinel.com
Thu Dec 1 14:12:25 GMT 2005


Jan Hudec wrote:
> On Thu, Dec 01, 2005 at 07:52:54 +0200, Jari Aalto wrote:
>> Martin Pool <mbp at sourcefrog.net> writes:
>>
>> | On 19 Nov 2005, David Clymer <david at zettazebra.com> wrote:
>> | 
>> | > Would it be possible to support both _bzr and .bzr? In other words, have
>> | > bzr use the first one it finds, perhaps adding a switch to bzr init to
>> | > allow the user to specify one or the other prefix. It could default to
>> | > _bzr on windows and .bzr on *nix.
>> | 
>> | Yes, it would be possible and I think we will end up doing that.
>>
>> NOTE: Win32/Cygwin people prefer .bzr, so before making "_bzr" default
>> under windows needs to check environment variable CYGWIN first.
> 
> 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.
> 
> --
> 						 Jan 'Bulb' Hudec <bulb at ucw.cz>

Actually, I always use:
sys.platform == 'win32'
sys.platform == 'cygwin'
sys.platform == 'darwin'
sys.platform.startswith('linux') # because we have 'linux2'

But generally, the only special cases we need are for the first 3, the
last one generally does what we want.

John
=:->


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051201/04def517/attachment.pgp 


More information about the bazaar mailing list