Skip to content

Commit

Permalink
[processing] fixed wrong import
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Jan 22, 2015
1 parent 7106384 commit 00cb680
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/plugins/processing/gui/ScriptEditorDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
***************************************************************************
"""


__author__ = 'Alexander Bruy'
__date__ = 'December 2012'
__copyright__ = '(C) 2012, Alexander Bruy'
Expand All @@ -43,7 +44,7 @@
from processing.algs.r.RAlgorithm import RAlgorithm
from processing.algs.r.RUtils import RUtils
from processing.script.ScriptAlgorithm import ScriptAlgorithm
from processing.script import ScriptUtils
from processing.script.ScriptUtils import ScriptUtils
from processing.ui.ui_DlgScriptEditor import Ui_DlgScriptEditor

import processing.resources_rc
Expand Down Expand Up @@ -100,7 +101,7 @@ def __init__(self, algType, alg):

self.snippets = {}
if self.algType == self.SCRIPT_PYTHON:
path = os.path.join(os.path.dirname(ScriptUtils.__file__), "snippets.py")
path = os.path.join(os.path.dirname(os.path.dirname(__file__)), "script", "snippets.py")
with open(path) as f:
lines = f.readlines()
snippetlines = []
Expand Down

0 comments on commit 00cb680

Please sign in to comment.