You can get the path to the root of Pythonista's "file system" with os.path.expanduser("~/Documents"), and the path to the Pythonista.app bundle (read-only) using os.path.dirname(sys.executable). Other accessible parts of the file system (also read-only) include /System/Library and subfolders, as well as / (but not most of its subfolders).