Skip to content

Commit

Permalink
Merge pull request #1848 from sanzoghenzo/develop
Browse files Browse the repository at this point in the history
docs: fix userconfig examples
  • Loading branch information
jmcouffin authored Jun 19, 2023
2 parents d6803d1 + b1fd7f6 commit ad8ce8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyrevitlib/pyrevit/userconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
>>> from pyrevit.userconfig import user_config
>>> user_config.add_section('newsection')
>>> user_config.newsection.property = value
>>> user_config.newsection.get('property', default_value)
>>> user_config.newsection.get_option('property', default_value)
>>> user_config.save_changes()
Expand All @@ -28,7 +28,7 @@
>>> from pyrevit import script
>>> cfg = script.get_config()
>>> cfg.property = value
>>> cfg.get('property', default_value)
>>> cfg.get_option('property', default_value)
>>> script.save_config()
"""
#pylint: disable=C0103,C0413,W0703
Expand Down Expand Up @@ -70,7 +70,7 @@ class PyRevitConfig(configparser.PyRevitConfigParser):
>>> cfg = PyRevitConfig(cfg_file_path)
>>> cfg.add_section('sectionname')
>>> cfg.sectionname.property = value
>>> cfg.sectionname.get('property', default_value)
>>> cfg.sectionname.get_option('property', default_value)
>>> cfg.save_changes()
"""

Expand Down

0 comments on commit ad8ce8a

Please sign in to comment.