python - IO within the Program Files Directory -
i made program both gathers data .txt file reading it, , writes data different .txt file. however, there problem. when run program in normal directory runs fine. problem arises when place in c:\program files directory. when run ioerror: [errno 13] permission denied: 'my subdirectory'. believe due directory having protocols when comes editing files within it.
this in windows 7, if wasn't apparent.
also if makes difference program written in python converted .exe py2exe.
all directories under \program files
, \windows
, root of c:\
, require administrator privileges in windows vista , 7 (and xp, when running non-administrative user, not default). shouldn't trying write there in first place. security measure prevent malware getting places shouldn't. since vista has been out several years, there plenty of articles available on uac
. can start here.
Comments
Post a Comment