Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete management workaround #7

Open
hjkristenson opened this issue Sep 22, 2020 · 1 comment
Open

Delete management workaround #7

hjkristenson opened this issue Sep 22, 2020 · 1 comment

Comments

@hjkristenson
Copy link
Contributor

hjkristenson commented Sep 22, 2020

The arcpy.Delete_management function doesn't work in this environment. As such, I have not been able to find a way to expunge the temp folder generated during the RGB process once the bands have been composited. This workflow is fine when running scripts directly, but it doesn't seem to be effective when running from within a tool.

@hjkristenson
Copy link
Contributor Author

I tried using the shutil approach to deletion, which looked promising, but at least one of the input bands still has a file lock when the command is run, so the utility cannot successfully delete the directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant