Moving thing around to prepare for distribution.

This commit is contained in:
Godzil 2019-10-08 14:30:51 +01:00
parent 3bcd2b6173
commit 3f6007b7f5
5 changed files with 14 additions and 4 deletions

View File

@ -0,0 +1,5 @@
#!/usr/bin/env python3
from . import splashbuilder
from . import cel2wst
from . import map2wsm

View File

@ -0,0 +1,6 @@
#!/usr/bin/env python3
from . import splashbuilder
if __name__ == "__main__":
splashbuilder.main()

View File

@ -1,7 +1,8 @@
# GB CEL to WS Tile # Convert GB CEL to WS Tile
import struct import struct
import argparse import argparse
def main(): def main():
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser()
parser.add_argument("-i", "--input", required=True, type=str, help="Input file") parser.add_argument("-i", "--input", required=True, type=str, help="Input file")

View File

@ -21,6 +21,7 @@ WS Map is
b8-b0 tile b8-b0 tile
""" """
def main(): def main():
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser()
parser.add_argument("-i", "--input", required=True, type=str, help="Input file") parser.add_argument("-i", "--input", required=True, type=str, help="Input file")

View File

@ -344,6 +344,3 @@ def main():
except Exception as e: except Exception as e:
print("Error: {e}".format(e=e)) print("Error: {e}".format(e=e))
if __name__ == "__main__":
main()