[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Pygame detect writable status of a file?
- To: pygame-users@xxxxxxxx
- Subject: [pygame] Pygame detect writable status of a file?
- From: Eric Pavey <warpcat@xxxxxxxxx>
- Date: Mon, 19 Oct 2009 17:17:28 -0700
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Mon, 19 Oct 2009 20:17:31 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com; s=gamma;        h=domainkey-signature:mime-version:received:date:message-id:subject         :from:to:content-type;        bh=BuWP2ywGlLQIiIW3Y1uGRU4zVEBohDk0YkbXBD9ss3o=;        b=qmZcl/mnFljr+XWQFeumOLPMjppJvFuKEvJ+VIBkT1IABnk2AePo84C9wZNovbPiCH         DAfUc/csDcVU+f5TTYJ1TGmB6foaF8++3gA5QO5qMfYnNfFavlH6ygVOEaXGRT8ej2Q2         j6/1C9jX1xpmwzqOXdRx1cBzDOFQ8/ixQL+g8=
- Domainkey-signature: a=rsa-sha1; c=nofws;        d=gmail.com; s=gamma;        h=mime-version:date:message-id:subject:from:to:content-type;        b=PI9XLhELoDN3LVjwnDYAEnUiZHw4ngQnODPE6Drk+w5c9e9T+GLxEeMo7uCiLq64Eg         llXPMCC1LfriRLm3qqwwUmaWv6cD36DvJpdCAyVep9v/x2icfLVOLEUQJa8DTisiquoo         EXnl0LFFuEoyJTnVRBLrVK/8K6M6oxdpDqm9o=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
I feel like I'm missing something in the prefs, and this behavior has been on three different machines (two winXP, one Vista) with Wing:
I have a file that is read-only, I open it in wing.  I can't edit it.  So I make it writable (managed through Perforce).  The only way (that I can so far find) for Wing to recognize that its writable is to close the file and re-open it.  If I do the opposite:  Start with it writable and then make it read-only, this seems to confuse Wing:  I save, it doesn't error, but nothing saves either (but it makes you think you saved ok).  The other editors I use seem to auto-detect the file-writable status.
Any thoughts?
thanks