title: PyInstaller: problems on update a json file from an EXE program file (-in the next relunch, json file it's not been update)
body: <p>I'm testing an EXE made by pyinstaller.
  In the project folder there is folder named config, which contains a json file where the user stores all the information he want about -for the GUI im using tkinter-
  But finally after I restart this application and reopen the json file, it's appearing the original file.</p>
  
  <p>I read about to create a new folder in execution time, where I put the origina json file. But i'm not properly satisfied with this solution.</p>
  
  <p>Please any help would be appreciated</p>
  
  <p>Update:</p>
  
  <p>Here is the project structure:</p>
  
  <pre><code>/config
        |----config.json
  /modules
        |----admin
        |----core
        |----graphwo
  init.py
  </code></pre>
  
  <p>The code execute well, except that I want user save their info inside the config.json file in other word, in execution time. But because the PyInstaller I've used is --onefile that's not permiting to update the config.json file</p>
  
  <p>Update II:</p>
  
  <p>Also I have this code which gets the current path at execution time of each file -images, data and json files- the application needs:</p>
  
  <pre><code>def getPathFileAtExecution(relative):
      try:
      base_path = sys._MEIPASS
  except Exception:
      base_path = os.path.abspath(".")
  return os.path.join(base_path, relative)
  </code></pre>
  
  <p>I trace any steps of the program when it's calling the json file for read and write. But after it finishes and restart againg, all changes made previously are not reflected.
  May is more clear now?</p>