title: Kivy python - getting "FileNotFoundError: [Errno 2] No such file or directory: '/home/me/BUILDOZER_TEST/countries.txt'
body: <p>I am using Buildozer to package a python script into an APK.  When I install the APK on an Android emulator, and run it, I am getting &quot;FileNotFoundError&quot;.  I simply want to read in a file containing a list of countries (countries.txt) and then list these in a DropDown menu.</p>
  <p>Based on advice I saw online about adding a &quot;datas&quot; line in the &quot;Analysis&quot; section, I have edited buildozer.spec, adding the following block:</p>
  <pre><code>a = Analysis(['main.py'],
           pathex=[''], (not clear what to put here??)
           hiddenimports=[],
           hookspath=None,
           datas=[('/home/me/BUILDOZER_TEST/countries.txt')], (this is the file to read)
           runtime_hooks=None)
  pyz = PYZ(a.pure)
  exe = EXE(pyz,
        a.scripts,
        a.binaries,
        a.zipfiles,
        a.datas,
        name='Main',
        debug=False,
        strip=None,
        upx=True,
        console=False , icon='mainIcon.ico')
  </code></pre>
  <p>In main.py I have tried giving the open() command with the full path.  I have also tried os.chdir(&quot;/the/path/where/the/file/is&quot;) as seen below:</p>
  <pre><code>def __init__(self, **kwargs):
      super().__init__(**kwargs)
  
      self.cols = 2  # used for our grid
  
      cwd = os.getcwd()  # Get the current working directory (cwd)
      files = os.listdir(cwd)  # Get all the files in that directory
      print(&quot;Files in %r: %s&quot; % (cwd, files))
  
      os.chdir(r'/home/me/BUILDOZER_TEST/')
      with open('./countries.txt') as f:
          content = f.readlines()
          li = [x.strip() for x in content]
          print(li)
  </code></pre>
  <p>When I use os.chdir(), it says file or directory does not exist.  Is my buildozer.spec file not correct?  Not sure what to try next... Any and all advice appreciated.</p>