__init__.py
: Remove unnecessary return variables
This commit is contained in:
parent
6baf2e55f2
commit
86c8909b0f
@ -9,12 +9,8 @@ from tja2fumen.constants import COURSE_IDS
|
|||||||
|
|
||||||
|
|
||||||
def main(argv=None):
|
def main(argv=None):
|
||||||
# NB: We want to return variables during testing, but not during CLI (or else they will be printed to stderr)
|
if not argv:
|
||||||
if argv:
|
|
||||||
return_vars = True
|
|
||||||
else:
|
|
||||||
argv = sys.argv[1:]
|
argv = sys.argv[1:]
|
||||||
return_vars = False
|
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
description="tja2fumen"
|
description="tja2fumen"
|
||||||
@ -46,9 +42,6 @@ def main(argv=None):
|
|||||||
outputFilenames.append(outputName)
|
outputFilenames.append(outputName)
|
||||||
writeFumen(outputName, fumenData)
|
writeFumen(outputName, fumenData)
|
||||||
|
|
||||||
if return_vars:
|
|
||||||
return parsedSongsTJA, parsedSongsFumen, outputFilenames
|
|
||||||
|
|
||||||
|
|
||||||
# NB: This entry point is necessary for the Pyinstaller executable
|
# NB: This entry point is necessary for the Pyinstaller executable
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user