Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: Change to setup_logging so that it attempts to use the progra…
…m name to determine log location instead of the __main__ module. This is because sometimes the __main__ module is actually zprocess.process_class_wrapper, for subprocesses started using the zprocess.Process class. To prevent their logs ending up in the zprocess directory, we can use the name of the program to determine the location of that program's __main__.py module instead. This is particularly important on linux if you are not using anaconda then zprocess may be installed somewhere without write permissions, so the log file is not just misplaced but throws a permissions error.
- Loading branch information