summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--snakegame/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/snakegame/__init__.py b/snakegame/__init__.py
index 73e1060..c3e9f4e 100644
--- a/snakegame/__init__.py
+++ b/snakegame/__init__.py
@@ -1,5 +1,3 @@
-import argparse
-
from snakegame.engines import BUILTIN_ENGINES
def first(d):
@@ -21,6 +19,8 @@ def load_engine(name, builtins=BUILTIN_ENGINES):
return import_thing(engine, 'Engine')
def main(argv=None):
+ import argparse
+
parser = argparse.ArgumentParser(conflict_handler='resolve')
parser.add_argument(
'-e', '--engine',