Use explicit importing over relative importing
Helps when the package is used by a different script
This commit is contained in:
parent
ae9cde3a20
commit
d671939c41
@ -1,7 +1,7 @@
|
||||
from copy import deepcopy
|
||||
|
||||
from utils import computeSoulGaugeByte
|
||||
from constants import TJA_NOTE_TYPES, DIFFICULTY_BYTES, unknownHeaderSample
|
||||
from tja2fumen.utils import computeSoulGaugeByte
|
||||
from tja2fumen.constants import TJA_NOTE_TYPES, DIFFICULTY_BYTES, unknownHeaderSample
|
||||
|
||||
# Filler metadata that the `writeFumen` function expects
|
||||
default_note = {'type': '', 'pos': 0.0, 'item': 0, 'padding': 0.0,
|
||||
|
@ -1,7 +1,7 @@
|
||||
from parsers import readFumen, parseTJA
|
||||
from writers import writeFumen
|
||||
from converters import convertTJAToFumen
|
||||
from utils import checkMismatchedBytes
|
||||
from tja2fumen.parsers import readFumen, parseTJA
|
||||
from tja2fumen.writers import writeFumen
|
||||
from tja2fumen.converters import convertTJAToFumen
|
||||
from tja2fumen.utils import checkMismatchedBytes
|
||||
|
||||
tja2fumen_version = "v0.1"
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
import os
|
||||
import re
|
||||
|
||||
from utils import readStruct, getBool, shortHex, nameValue, debugPrint, checkValidHeader, validateHeaderMetadata
|
||||
from constants import (
|
||||
from tja2fumen.utils import readStruct, getBool, shortHex, nameValue, debugPrint, checkValidHeader, validateHeaderMetadata
|
||||
from tja2fumen.constants import (
|
||||
# TJA constants
|
||||
HEADER_GLOBAL, HEADER_COURSE, BRANCH_COMMANDS, MEASURE_COMMANDS, COMMAND,
|
||||
# Fumen constants
|
||||
|
@ -2,7 +2,7 @@ import sys
|
||||
import struct
|
||||
import math
|
||||
|
||||
from constants import simpleHeaders, byte_strings
|
||||
from tja2fumen.constants import simpleHeaders, byte_strings
|
||||
|
||||
|
||||
def checkValidHeader(header):
|
||||
|
@ -1,5 +1,5 @@
|
||||
from utils import writeStruct, putBool
|
||||
from constants import simpleHeaders, branchNames, typeNotes
|
||||
from tja2fumen.utils import writeStruct, putBool
|
||||
from tja2fumen.constants import simpleHeaders, branchNames, typeNotes
|
||||
|
||||
|
||||
def writeFumen(file, song):
|
||||
|
Loading…
x
Reference in New Issue
Block a user