Skip to content

Commit

Permalink
Clean up imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jleclanche committed Feb 6, 2018
1 parent e946c14 commit 6c958e4
Show file tree
Hide file tree
Showing 17 changed files with 24 additions and 10 deletions.
6 changes: 4 additions & 2 deletions bin/unity2yaml
@@ -1,9 +1,11 @@
#!/usr/bin/env python
import os
import sys
import unitypack
import yaml
from argparse import ArgumentParser

import yaml

import unitypack
from unitypack.asset import Asset
from unitypack.object import ObjectPointer

Expand Down
3 changes: 2 additions & 1 deletion bin/unityextract
Expand Up @@ -2,9 +2,10 @@
import os
import pickle
import sys
import unitypack
from argparse import ArgumentParser
from io import BytesIO

import unitypack
from unitypack.asset import Asset
from unitypack.export import OBJMesh
from unitypack.utils import extract_audioclip_samples
Expand Down
3 changes: 2 additions & 1 deletion unitypack/asset.py
@@ -1,9 +1,10 @@
import os
import logging
import lzma
import os
from binascii import hexlify
from io import BytesIO
from uuid import UUID

from .object import ObjectInfo
from .type import TypeMetadata
from .utils import BinaryReader
Expand Down
1 change: 1 addition & 0 deletions unitypack/assetbundle.py
@@ -1,6 +1,7 @@
import lzma
import struct
from io import BytesIO

from .asset import Asset
from .enums import CompressionType
from .utils import BinaryReader, lz4_decompress
Expand Down
1 change: 1 addition & 0 deletions unitypack/engine/animation.py
@@ -1,4 +1,5 @@
from enum import IntEnum

from .component import Behaviour, Component
from .object import Object, field

Expand Down
1 change: 1 addition & 0 deletions unitypack/engine/audio.py
@@ -1,5 +1,6 @@
import logging
from enum import IntEnum

from .component import Behaviour
from .object import Object, field

Expand Down
2 changes: 1 addition & 1 deletion unitypack/engine/font.py
@@ -1,4 +1,4 @@
from .object import field, Object
from .object import Object, field


class Font(Object):
Expand Down
3 changes: 1 addition & 2 deletions unitypack/engine/movie.py
@@ -1,6 +1,5 @@
from enum import IntEnum
from .texture import Texture
from .object import field
from .texture import Texture


class MovieTexture(Texture):
Expand Down
1 change: 1 addition & 0 deletions unitypack/engine/physics.py
@@ -1,4 +1,5 @@
from enum import IntEnum

from .component import Behaviour, Component
from .object import field

Expand Down
1 change: 1 addition & 0 deletions unitypack/engine/renderer.py
@@ -1,4 +1,5 @@
from enum import IntEnum

from .component import Component
from .object import field

Expand Down
1 change: 1 addition & 0 deletions unitypack/engine/text.py
@@ -1,4 +1,5 @@
from enum import IntEnum

from .component import Component
from .object import Object, field

Expand Down
2 changes: 2 additions & 0 deletions unitypack/engine/texture.py
@@ -1,4 +1,6 @@
import logging
from enum import IntEnum

from .object import Object, field


Expand Down
1 change: 1 addition & 0 deletions unitypack/environment.py
@@ -1,5 +1,6 @@
import os
from urllib.parse import urlparse

from .asset import Asset
from .assetbundle import AssetBundle

Expand Down
1 change: 1 addition & 0 deletions unitypack/export.py
@@ -1,4 +1,5 @@
from io import BytesIO

from .utils import BinaryReader


Expand Down
2 changes: 1 addition & 1 deletion unitypack/object.py
@@ -1,6 +1,6 @@
import logging
from collections import OrderedDict
from io import BytesIO

from . import engine as UnityEngine
from .resources import UnityClass
from .type import TypeMetadata, TypeTree
Expand Down
2 changes: 1 addition & 1 deletion unitypack/resources.py
@@ -1,5 +1,5 @@
import os
import json
import os


def get_resource(name):
Expand Down
3 changes: 2 additions & 1 deletion unitypack/type.py
@@ -1,6 +1,7 @@
from io import BytesIO

from .enums import RuntimePlatform
from .resources import get_resource, STRINGS_DAT
from .resources import STRINGS_DAT, get_resource
from .utils import BinaryReader


Expand Down

0 comments on commit 6c958e4

Please sign in to comment.