The app
module¶
This modules contains a class to access application settings.
App
Objects¶
-
class
app.
App
¶
This class is initialized automatically and by the geany
module and
shouldn’t be initalized by users. An instance of it is available through
the geany.app
attribute of the geany
module.
All members of the App
are read-only properties.
App.
configdir
¶User configuration directory, usually ~/.config/geany. To store configuration files for your plugin, it’s a good idea to use something like this:
conf_path = os.path.join(geany.app.configdir, "plugins", "yourplugin", "yourconfigfile.conf")
App.
debug_mode
¶If True, debug messages should be printed. For example, if you want to make a
print()
function that only prints whenApp.debug_mode
is active, you could do something like this:def debug_print(message): if geany.app.debug_mode: print(message)
App.
project
¶If not
None
, the aproject.Project
for currently active project.