Commit 7da6f194 authored by Guillaume Seguin's avatar Guillaume Seguin

Rename printrun.printrun_utils to printrun.utils

parent 87ccfc8d
......@@ -16,7 +16,7 @@
import wx
from printrun import gviz
from printrun_utils import imagefile, install_locale
from .utils import imagefile, install_locale
install_locale('pronterface')
class ExcluderWindow(gviz.GvizWindow):
......
......@@ -17,7 +17,7 @@
# Set up Internationalization using gettext
# searching for installed locales on /usr/share; uses relative folder if not found (windows)
from printrun.printrun_utils import install_locale, get_home_pos
from .utils import install_locale, get_home_pos
install_locale('pronterface')
import wx
......
......@@ -21,7 +21,7 @@ import datetime
import logging
from array import array
from printrun_utils import install_locale
from .utils import install_locale
install_locale('pronterface')
gcode_parsed_args = ["x", "y", "e", "f", "z", "i", "j"]
......
......@@ -30,7 +30,7 @@ from pyglet.gl import *
from .gviz import GvizBaseFrame
from printrun_utils import imagefile, install_locale, get_home_pos
from .utils import imagefile, install_locale, get_home_pos
install_locale('pronterface')
def create_model(light):
......
......@@ -33,7 +33,7 @@ from pyglet.gl import glPushMatrix, glPopMatrix, glTranslatef, \
glEnableClientState, glDisableClientState, GL_VERTEX_ARRAY, GL_COLOR_ARRAY
from pyglet.graphics.vertexbuffer import create_buffer, VertexBufferObject
from printrun.printrun_utils import install_locale
from printrun.utils import install_locale
install_locale('pronterface')
def vec(*args):
......
......@@ -18,7 +18,7 @@
import wx
from math import log10, floor, ceil
from printrun.printrun_utils import install_locale
from .utils import install_locale
install_locale('pronterface')
from bufferedcanvas import BufferedCanvas
......
......@@ -19,7 +19,7 @@ except:
print _("WX is not installed. This program requires WX to run.")
raise
from printrun.printrun_utils import install_locale
from printrun.utils import install_locale
install_locale('pronterface')
from .controls import ControlsSizer, add_extra_controls
......
......@@ -19,7 +19,7 @@ import wx
import time
from printrun import gcoder
from printrun_utils import imagefile, install_locale, get_home_pos
from .utils import imagefile, install_locale, get_home_pos
install_locale('pronterface')
class GvizBaseFrame(wx.Frame):
......
......@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with Printrun. If not, see <http://www.gnu.org/licenses/>.
from printrun.printrun_utils import install_locale, iconfile
from .utils import install_locale, iconfile
install_locale('plater')
import os
......
......@@ -19,7 +19,7 @@ import os
# Set up Internationalization using gettext
# searching for installed locales on /usr/share; uses relative folder if not found (windows)
from printrun.printrun_utils import install_locale
from .utils import install_locale
install_locale('pronterface')
import wx
......
......@@ -34,7 +34,7 @@ import re
from functools import wraps
from collections import deque
from printrun import gcoder
from printrun.printrun_utils import install_locale, decode_utf8, setup_logging
from .utils import install_locale, decode_utf8, setup_logging
install_locale('pronterface')
setup_logging(sys.stderr)
......
......@@ -29,7 +29,7 @@ import traceback
import re
from . import printcore
from printrun.printrun_utils import install_locale, run_command, \
from .utils import install_locale, run_command, \
format_time, format_duration, RemainingTimeEstimator, \
get_home_pos, parse_build_dimensions, parse_temperature_report
install_locale('pronterface')
......
......@@ -34,7 +34,8 @@ except ImportError: import json
from . import pronsole
from . import printcore
from printrun.printrun_utils import install_locale, setup_logging, \
from .utils import install_locale, setup_logging, \
iconfile, configfile, format_time, format_duration, \
hexcolor_to_float, parse_temperature_report
install_locale('pronterface')
......@@ -53,7 +54,6 @@ layerindex = 0
if os.name == "nt":
winsize = (800, 530)
from printrun.printrun_utils import iconfile, configfile, format_time, format_duration
from printrun.gui import MainWindow
from printrun.excluder import Excluder
from pronsole import dosify, wxSetting, HiddenSetting, StringSetting, SpinSetting, FloatSpinSetting, BooleanSetting, StaticTextSetting
......
......@@ -16,7 +16,7 @@
import wx
import math
from bufferedcanvas import BufferedCanvas
from printrun_utils import imagefile
from .utils import imagefile
def sign(n):
if n < 0: return -1
......
......@@ -15,7 +15,7 @@
import wx
from bufferedcanvas import BufferedCanvas
from printrun_utils import imagefile
from .utils import imagefile
def sign(n):
if n < 0: return -1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment