Python Question

Python Question

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Dragon45
Posts: 2883
Joined: 16 Aug 2004, 04:36

Python Question

Post by Dragon45 »

So I can't open()/file() *.exe's in 'w' mode - is this normal behavior? 'r' mode works properly, of course.

If it is normal behavior, are there any other file types that cannot be opened in 'w' mode?
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Post by imbaczek »

Depends... if the exe is running, windows won't allow to write to it. OTOH there shouldn't be a problem with creating a completely new .exe.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

Are there any NTFS restrictions set so that your user may not open files for writing?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

On new versions of windows such as Vista, 2003, and soem versions of XP, program files is a read only folder for anyone but administrators and internal system accounts.
Post Reply

Return to “Engine”