I\'m working on a Flask extension from which I want to create a directory in the project\'s root path on the file system.
Suppose we have this directory structure
app.root_path is the absolute path to the root directory containing your app code.
app.instance_path is the absolute path to the instance folder. os.path.dirname(app.instance_path) is the directory above the instance folder. During development, this is next to or the same as the root path, depending on your project layout.