mirror of
https://github.com/wassname/sloth.git
synced 2026-09-09 11:35:32 +08:00
fix import paths
This commit is contained in:
@@ -38,6 +38,8 @@ for dirpath, dirnames, filenames in os.walk(sloth_dir):
|
||||
if dirname.startswith('.'): del dirnames[i]
|
||||
if '__init__.py' in filenames:
|
||||
packages.append('.'.join(fullsplit(dirpath)))
|
||||
if 'labeltool.ui' in filenames:
|
||||
data_files.append([dirpath, [os.path.join(dirpath, 'labeltool.ui')]])
|
||||
elif filenames:
|
||||
data_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames]])
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import os
|
||||
import fnmatch
|
||||
from core.exceptions import ImproperlyConfigured, NotImplementedException
|
||||
from sloth.core.exceptions import ImproperlyConfigured, NotImplementedException
|
||||
try:
|
||||
import cPickle as pickle
|
||||
except:
|
||||
|
||||
@@ -4,17 +4,17 @@ INSTALLDIR=os.path.join(os.path.dirname(__file__), '../gui')
|
||||
sys.path.append(INSTALLDIR)
|
||||
|
||||
import functools, importlib
|
||||
from optparse import OptionParser
|
||||
from PyQt4.QtGui import *
|
||||
from PyQt4.QtCore import *
|
||||
import PyQt4.uic as uic
|
||||
from gui import qrc_icons
|
||||
from gui.buttonarea import *
|
||||
from annotations.model import *
|
||||
from annotations.container import AnnotationContainerFactory, AnnotationContainer
|
||||
from gui.annotationscene import *
|
||||
from gui.frameviewer import *
|
||||
from optparse import OptionParser
|
||||
from conf import config
|
||||
from sloth.gui import qrc_icons
|
||||
from sloth.gui.buttonarea import *
|
||||
from sloth.annotations.model import *
|
||||
from sloth.annotations.container import AnnotationContainerFactory, AnnotationContainer
|
||||
from sloth.gui.annotationscene import *
|
||||
from sloth.gui.frameviewer import *
|
||||
from sloth.conf import config
|
||||
|
||||
APP_NAME = """labeltool"""
|
||||
ORGANIZATION_NAME = """CV:HCI Research Group"""
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from conf import default_config
|
||||
from sloth.conf import default_config
|
||||
import importlib
|
||||
|
||||
class Config:
|
||||
|
||||
@@ -5,13 +5,13 @@ HOTKEYS = (
|
||||
)
|
||||
|
||||
ITEMS = {
|
||||
'rect': 'items.RectItem',
|
||||
'point': 'items.PointItem',
|
||||
'rect': 'sloth.items.RectItem',
|
||||
'point': 'sloth.items.PointItem',
|
||||
}
|
||||
|
||||
INSERTERS = {
|
||||
'rect': 'items.RectItemInserter',
|
||||
'point': 'items.PointItemInserter',
|
||||
'rect': 'sloth.items.RectItemInserter',
|
||||
'point': 'sloth.items.PointItemInserter',
|
||||
}
|
||||
|
||||
CONTAINERS = (
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
"""Dies ist das AnnotationScene module"""
|
||||
from PyQt4.QtGui import *
|
||||
from PyQt4.QtCore import *
|
||||
from items import *
|
||||
from annotations.model import TypeRole, ImageRole
|
||||
from sloth.items import *
|
||||
from sloth.annotations.model import TypeRole, ImageRole
|
||||
import math
|
||||
import okapy
|
||||
from okapy.guiqt.utilities import toQImage
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from items import *
|
||||
from inserters import *
|
||||
from factory import Factory
|
||||
from sloth.items.items import *
|
||||
from sloth.items.inserters import *
|
||||
from sloth.items.factory import Factory
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import exceptions
|
||||
from sloth.core import exceptions
|
||||
import importlib
|
||||
|
||||
class Factory:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from PyQt4.QtGui import *
|
||||
from PyQt4.Qt import *
|
||||
from annotations.model import DataRole
|
||||
from sloth.annotations.model import DataRole
|
||||
|
||||
class ControlItem(QGraphicsItem):
|
||||
def __init__(self, parent=None):
|
||||
|
||||
Reference in New Issue
Block a user