Skip to content

Commit

Permalink
Update Comment Typos
Browse files Browse the repository at this point in the history
update 'the' to 'then' on line 34
update 'customwidget' to 'custom widget' to match reference in comment on line 72
Update 'windows' to 'Windows' on line 65 to match previous reference on line 31
  • Loading branch information
benjaminwheel3r authored and nyalldawson committed Sep 19, 2020
1 parent bc6ed95 commit 96bdfac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/__init__.py
Expand Up @@ -31,7 +31,7 @@ def setupenv():
Set the environment for Windows based on the .vars files from the Set the environment for Windows based on the .vars files from the
OSGeo4W package format. OSGeo4W package format.
""" """
# If the prefix path is already set the we don't do any more path setup. # If the prefix path is already set then we don't do any more path setup.
if os.getenv('QGIS_PREFIX_PATH'): if os.getenv('QGIS_PREFIX_PATH'):
return return


Expand Down Expand Up @@ -62,7 +62,7 @@ def setupenv():




if os.name == 'nt': if os.name == 'nt':
# On windows we need to setup the paths before we can import # On Windows we need to setup the paths before we can import
# any of the QGIS modules or else it will error. # any of the QGIS modules or else it will error.
setupenv() setupenv()


Expand All @@ -77,7 +77,7 @@ def setupenv():
try: try:
import qgis.gui import qgis.gui
widget_list = dir(qgis.gui) widget_list = dir(qgis.gui)
# remove widgets that are not allowed as customwidgets (they need to be manually promoted) # remove widgets that are not allowed as custom widgets (they need to be manually promoted)
skip_list = ['QgsScrollArea'] skip_list = ['QgsScrollArea']
for widget in widget_list: for widget in widget_list:
if widget.startswith('Qgs') and widget not in skip_list: if widget.startswith('Qgs') and widget not in skip_list:
Expand Down

0 comments on commit 96bdfac

Please sign in to comment.