old_contents: import os
  import sys
  
  try:
      from flask import Flask
      import flask_login
      from flask_restless import APIManager
      from flask_sqlalchemy import SQLAlchemy
      import requests
  except ImportError:
      INTERP = "venv/bin/python"
  
      if os.path.relpath(sys.executable, os.getcwd()) != INTERP:
          try:
              os.execl(INTERP, INTERP, *sys.argv)
          except OSError:
              sys.exit("Could not find virtual environment. Run `:~$ ./setup.sh`")
      else:
          sys.exit("Could not find requirements. Are they all included in requirements.txt? Run `:~$ ./setup.sh`")
  
  
  application = Flask(__name__)
  
  
  @application.route("/")
  def index():
      return "Hello, world!"
  
  
  if __name__ == "__main__":
      application.run()
  
new_contents: import os
  import subprocess
  import sys
  
  try:
      from flask import Flask
      import flask_login
      from flask_restless import APIManager
      from flask_sqlalchemy import SQLAlchemy
      import requests
  except ImportError:
      INTERP = "venv/bin/python"
  
      if os.path.relpath(sys.executable, os.getcwd()) != INTERP:
          try:
              os.execl(INTERP, INTERP, *sys.argv)
          except OSError:
              sys.exit("Could not find virtual environment. Run `:~$ ./setup.sh`")
      else:
          sys.exit("Could not find requirements. Are they all included in requirements.txt? Run `:~$ ./setup.sh`")
  
  
  application = Flask(__name__)
  
  
  @application.route("/")
  def index():
      return "Hello, world!"
  
  
  @application.route("/update")
  def update():
      subprocess.call(['mkdir', 'tmp'])
      subprocess.call(['touch', 'tmp/restart.txt'])
  
  
  @application.route("/big_update")
  def bigUpdate():
      subprocess.call(['./setup.sh'])
  
  
  if __name__ == "__main__":
      application.run()
  
subject: Add updater