changeset 282:f93e0c992f28

Add scripts folder.
author Simon Cross <hodgestar@gmail.com>
date Sat, 05 Sep 2009 15:17:08 +0000
parents 5753b624223e
children 6ade2b371445
files scripts/foxassault.py scripts/testconsole.py
diffstat 2 files changed, 22 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/foxassault.py	Sat Sep 05 15:17:08 2009 +0000
@@ -0,0 +1,4 @@
+#! /usr/bin/env python
+
+from gamelib import main
+main.main()
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/testconsole.py	Sat Sep 05 15:17:08 2009 +0000
@@ -0,0 +1,18 @@
+# TestConsole.py
+# -*- coding: utf8 -*-
+# vim:fileencoding=utf8 ai ts=4 sts=4 et sw=4
+# Copyright 2009 Simon Cross <hodgestar@gmail.com>
+# GPL - see COPYING for details
+
+"""This module launches an interactive console.
+
+   Its purpose is to provide an easy means to
+   test the environment created by a py2exe build.
+   """
+
+if __name__ == "__main__":
+    import code
+    # pylint: disable-msg=C0103
+    # pylint thinks this should be a constant
+    console = code.InteractiveConsole()
+    console.interact()