themusicwave
April 14th, 2008, 01:53 PM
Good morning everyone,
So I have this python program at work that is essentially an installer for another application. It copies all kinds of files and moves things around, edits config files, build databases and such.
It's also meant to be run on Windows XP ( I know, I know...)
The issue I am running into seems to be with file permissions. It usually occurs when I try to erase a file. It will through a Windows Error stating that Access is denied.
I think the issue may be due to the fact that the file I am trying to erase is in a directory above my current one. I am running as an admin so I have no idea why I can't remove the file.
The file isn't open currently.
I also run into an issue when I put the installer on a CD-ROM. Basically, I am trying to read a SQL file off the CD-ROM to create a database. Once again Windows tells me I can;t do that. If I run the exact same file with the exact same folder structure off of the hard drive it works....weird...
Any ideas would be great.
So I have this python program at work that is essentially an installer for another application. It copies all kinds of files and moves things around, edits config files, build databases and such.
It's also meant to be run on Windows XP ( I know, I know...)
The issue I am running into seems to be with file permissions. It usually occurs when I try to erase a file. It will through a Windows Error stating that Access is denied.
I think the issue may be due to the fact that the file I am trying to erase is in a directory above my current one. I am running as an admin so I have no idea why I can't remove the file.
The file isn't open currently.
I also run into an issue when I put the installer on a CD-ROM. Basically, I am trying to read a SQL file off the CD-ROM to create a database. Once again Windows tells me I can;t do that. If I run the exact same file with the exact same folder structure off of the hard drive it works....weird...
Any ideas would be great.