code: def update_environment(lib_directory):
          
          # Use this if you want to include modules from a subfolder
          # lib_path = os.path.realpath(
          #     os.path.abspath(
          #         os.path.join(
          #             os.path.split(inspect.getfile(inspect.currentframe()))[0], lib_directory)))
          lib_path = os.path.join(os.getcwd(), lib_directory)
          if 'PYTHONPATH' in os.environ:
              os.environ['PYTHONPATH'] = '{}{}{}'.format(
                  lib_path, os.pathsep, os.environ['PYTHONPATH']
              )
          else:
              os.environ['PYTHONPATH'] = '{}'.format(lib_path)
docs: Run the App as a subprocess.