[GRASSGUI] testing wxgrass

William Kyngesburye woklist at kyngchaos.com
Tue Mar 27 12:26:39 EDT 2007


I used os.chmod in my old python app wrapper for OSX.  Pretty simple,  
but I think the file/folder needs to exist (I must have got errors  
when I did this):

import os
if os.path.exists('/path/to/file-or-folder') :
     os.chmod('/path/to/file-or-folder', 0775)

The mode can be a unix-style bit pattern on unix systems, or a  
simpler set of os. constants on other platforms (basic r/w/x, no  
owner/group/all).  But it looks like it converts unix modes to the  
simpler modes for you if it's used on one of those systems.

On Mar 27, 2007, at 10:58 AM, Michael Barton wrote:

> I just fixed this and committed it to the svn. But we may need to  
> add a line
> to set permissions (I just copied the PERMANENT/WIND permissions  
> with the
> file because I don't understand how to use os.chmod yet).
>

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Time is an illusion - lunchtime doubly so."

- Ford Prefect





More information about the grass-gui mailing list