Skip to content

Commit

Permalink
Fixes relative import resulting in '__main__' is not a package error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayfiro committed Jun 19, 2018
1 parent 75bc393 commit 7072a3f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions palletier/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
__email__ = '[email protected]'
__version__ = '0.1.0'

from .box import Box
from .pallet import Pallet
from .packedpallet import PackedPallet
from .palletier import Solver
from .packer import Packer
from palletier.box import Box
from palletier.pallet import Pallet
from palletier.packedpallet import PackedPallet
from palletier.palletier import Solver
from palletier.packer import Packer
2 changes: 1 addition & 1 deletion palletier/packer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import collections
import copy

from .topology import Topology
from palletier.topology import Topology

Layer = collections.namedtuple('Layer', ['width', 'value'])
Coords = collections.namedtuple('Coords', ['x', 'y', 'z'])
Expand Down
8 changes: 4 additions & 4 deletions palletier/palletier.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
from itertools import permutations
from copy import copy, deepcopy

from .box import Box
from .packer import Packer
from .pallet import Pallet
from .packedpallet import PackedPallet
from palletier.box import Box
from palletier.packer import Packer
from palletier.pallet import Pallet
from palletier.packedpallet import PackedPallet

Dims = collections.namedtuple('Dims', ['dim1', 'dim2', 'dim3'])

Expand Down

0 comments on commit 7072a3f

Please sign in to comment.