galaxyproject / ephemeris

Library for managing Galaxy plugins - tools, index data, and workflows.
https://ephemeris.readthedocs.org/
Other
27 stars 38 forks source link

shed-install stores logs in a fixed tmp location. #84

Closed rhpvorderman closed 6 years ago

rhpvorderman commented 6 years ago

This is a problem when you run ephemeris as a different user on the same system: Permission denied: "/tmp/galaxy_tool_install.log" Since this is in /tmp you cannot delete the file of the other user.

afgane commented 6 years ago

I'm actually surprised this has remained in the code for this long... It's just a default: https://github.com/galaxyproject/ephemeris/blob/master/ephemeris/shed_tools.py#L738

I guess we should make it an optional command line parameter?

rhpvorderman commented 6 years ago

Also in run-data-managers. I guess we should create a default random directory in tmp (functionality probably in python standard library) and indeed make an option that changes this from the command line. Additionally we can add a log.info statement where the log is stored (citing full path) when the program is started.