i have two user profiles in my app, both which have a separate database associated with each profile. The user can add profiles no problem, for this i use execfile.
But when i try to delete a file from my application it wont delete it. Iget errno 13 which i presume is that the file is in use. how can i know for sure whether its in use? i need these files deleted from within the app... but yet they wont go.
if i run them from outide the application.. like if i just run deleteDB.py file from the menu the db goes but i need to do it from within an application
i use the code..
Any ideas?Code:receive_path = "e:\\Python\\User1.db" if(os.path.exists(receive_path)): os.remove(receive_path)