Initial set of tools for editing/running projects
This commit is contained in:
13
goat/__init__.py
Normal file
13
goat/__init__.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import sys
|
||||
from . import godot, gzdoom
|
||||
|
||||
def main():
|
||||
project = godot.find_project(".") or gzdoom.find_project(".")
|
||||
if not project:
|
||||
raise Exception("could not find valid project")
|
||||
|
||||
command = sys.argv[1]
|
||||
if command == "run":
|
||||
project.run()
|
||||
elif command == "edit":
|
||||
project.edit()
|
||||
Reference in New Issue
Block a user