diff --git a/src/tja2fumen/__init__.py b/src/tja2fumen/__init__.py index 83036ad..856cd02 100644 --- a/src/tja2fumen/__init__.py +++ b/src/tja2fumen/__init__.py @@ -9,12 +9,8 @@ from tja2fumen.constants import COURSE_IDS 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 argv: - return_vars = True - else: + if not argv: argv = sys.argv[1:] - return_vars = False parser = argparse.ArgumentParser( description="tja2fumen" @@ -46,9 +42,6 @@ def main(argv=None): outputFilenames.append(outputName) writeFumen(outputName, fumenData) - if return_vars: - return parsedSongsTJA, parsedSongsFumen, outputFilenames - # NB: This entry point is necessary for the Pyinstaller executable if __name__ == "__main__":