title: Errno 2: No such file or directory: 'C:\\tmp\\cat.log'
body: <p>I run Concept Annotation Tool (CAT) using Docker and then I installed it in the same way as in the following website: <a href="https://libraries.io/pypi/medcat" rel="nofollow noreferrer">https://libraries.io/pypi/medcat</a>
  These steps were successful. </p>
  
  <p>Then I wanted to implement it in my Python code. When I run the code I get an error from the import lines:</p>
  
  <pre><code>Traceback (most recent call last):
  
    File "&lt;ipython-input-10-32d167ab52db&gt;", line 1, in &lt;module&gt;
      runfile('C:/Users/as/Desktop/Data/Preprocessing.py', wdir='C:/Users/as/Desktop/Data')
  
    File "C:\Users\as\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 786, in runfile
      execfile(filename, namespace)
  
    File "C:\Users\as\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
      exec(compile(f.read(), filename, 'exec'), namespace)
  
    File "C:/Users/as/Desktop/Data/Preprocessing.py", line 27, in &lt;module&gt;
      from medcat.cat import CAT
  
    File "C:\Users\as\AppData\Local\Continuum\anaconda3\lib\site-packages\medcat\cat.py", line 4, in &lt;module&gt;
      from medcat.cdb import CDB
  
    File "C:\Users\as\AppData\Local\Continuum\anaconda3\lib\site-packages\medcat\cdb.py", line 9, in &lt;module&gt;
      from medcat.utils.loggers import basic_logger
  
    File "C:\Users\as\AppData\Local\Continuum\anaconda3\lib\site-packages\medcat\utils\loggers.py", line 6, in &lt;module&gt;
      logging.basicConfig(filename='/tmp/cat.log', level=logging.DEBUG)
  
    File "C:\Users\as\AppData\Local\Continuum\anaconda3\lib\logging\__init__.py", line 1900, in basicConfig
      h = FileHandler(filename, mode)
  
    File "C:\Users\as\AppData\Local\Continuum\anaconda3\lib\logging\__init__.py", line 1092, in __init__
      StreamHandler.__init__(self, self._open())
  
    File "C:\Users\as\AppData\Local\Continuum\anaconda3\lib\logging\__init__.py", line 1121, in _open
      return open(self.baseFilename, self.mode, encoding=self.encoding)
  
    FileNotFoundError: [Errno 2] No such file or directory: 'C:\\tmp\\cat.log'
  </code></pre>
  
  <p>The code I run is:</p>
  
  <pre><code>from medcat.cat import CAT
  from medcat.utils.vocab import Vocab
  from medcat.prepare_cdb import PrepareCDB
  from medcat.cdb import CDB
  
  vocab = Vocab()
  #Load the vocab model
  vocab.load_dict('C:/Users/as/Desktop/Data/med_ann_norm_dict.dat')
  
  #build a special CDB from a .csv file
  preparator = PrepareCDB(vocab=vocab)
  csv_paths = ['C:/Users/as/Desktop/Data/codes.csv']
  cdb = preparator.prepare_csvs(csv_paths)
  
  #Annotate the text
  doc = text
  cat = CAT(cdb=cdb, vocab=vocab)
  </code></pre>
  
  <p>I also tried to find the file so I searched for the <code>%tmp%</code> directory. The search returned me the Temp directory, and there is no file called cat.log.</p>