I need to know when a user opens a file.
1. Python process that is constant
2. File is *checked in* through perforce and is not writable
3. The file is opened using one of several programs.
ex. Can be accessed through Photoshop, paint ets
4. When the user opens the file or a file in a directory - python can then say hey are you wanting to check that out in perforce
Problems: Only ask the user if its accessed by one of several programs - ie not when perforce gets latest. I don't want to worry about the program someone decides to open it with and create custom things for each program :\ - just want to have a little watcher that says - ahh hey you're opening a file in a directory and I think you might want to check it out in perforce.......
Any thoughts?
stat.ST_ATIME - can tell me when something accesses it - but it gets accessed automatically by perforce from time to time :\
Thanks - any help is appreciated.. oh also I'm a complete python n00b :(
1. Python process that is constant
2. File is *checked in* through perforce and is not writable
3. The file is opened using one of several programs.
ex. Can be accessed through Photoshop, paint ets
4. When the user opens the file or a file in a directory - python can then say hey are you wanting to check that out in perforce
Problems: Only ask the user if its accessed by one of several programs - ie not when perforce gets latest. I don't want to worry about the program someone decides to open it with and create custom things for each program :\ - just want to have a little watcher that says - ahh hey you're opening a file in a directory and I think you might want to check it out in perforce.......
Any thoughts?
stat.ST_ATIME - can tell me when something accesses it - but it gets accessed automatically by perforce from time to time :\
Thanks - any help is appreciated.. oh also I'm a complete python n00b :(