Open caver456 opened 5 years ago
this is for jython, but looks related: https://bugs.jython.org/issue1975
The offending lines in radiolog.py:
if self.use2WD and self.secondWorkingDir and not os.path.isdir(self.secondWorkingDir):
configErr+="ERROR: second working directory '"+self.secondWorkingDir+"' does not exist. Maybe it is not mounted yet; radiolog will try to write to it after every entry.\n\n"
another good lead: https://stackoverflow.com/questions/39492524/os-path-isfile-returns-false-for-file-on-network-drive
in general, googling 'os.path.isdir network drive' seems to give some good results.
On the trailer network, the dispatch computer may not recognize a shared drive at radiolog startup time. At the north county WUI, we noticed that the fresh attempt to write to the second drive on every entry was either disabled or was still not recognizing the shared drive. After a while, we tried navigating to the shared drive in the windows file browser; from then on, every entry was getting written to the shared drive (so that radiolog_viewer could work as expected).
Find a way to do this 'burp' of the shared drive in the radiolog code. Do sufficient testing with and without the new burp code to ensure that the code is actually working, as opposed to some intermittent unpredictable network timing issue that makes it appear to be fine.