Skip to content

Commit

Permalink
Fix more non-toplevel imports
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 21, 2019
1 parent ef75ee4 commit e837598
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion processing_r/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
***************************************************************************/
"""

from .r_plugin import RProviderPlugin


# noinspection PyPep8Naming
def classFactory(iface): # pylint: disable=invalid-name
Expand All @@ -19,5 +21,4 @@ def classFactory(iface): # pylint: disable=invalid-name
:type iface: QgsInterface
"""
#
from .r_plugin import RProviderPlugin
return RProviderPlugin(iface)
2 changes: 1 addition & 1 deletion processing_r/processing/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import platform
import subprocess
from typing import Optional
from ctypes import cdll

from qgis.PyQt.QtCore import QCoreApplication
from qgis.core import (QgsProcessingUtils,
Expand Down Expand Up @@ -196,7 +197,6 @@ def get_windows_code_page():
Determines MS-Windows CMD.exe shell codepage.
Used into GRASS exec script under MS-Windows.
"""
from ctypes import cdll
return str(cdll.kernel32.GetACP())

@staticmethod
Expand Down

0 comments on commit e837598

Please sign in to comment.