From bb1bd24b0662d91efcc5003dd24519d9c0d46ec9 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 8 Sep 2009 10:57:54 +0000 Subject: [PATCH] Very simple deploy-for-web thing --- direct/src/p3d/pdeploy.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/direct/src/p3d/pdeploy.py b/direct/src/p3d/pdeploy.py index a25d573a20..8f12d98253 100644 --- a/direct/src/p3d/pdeploy.py +++ b/direct/src/p3d/pdeploy.py @@ -120,7 +120,17 @@ def deployApp(args): im.licensefile = licensefile im.build() elif deploy_mode == 'web': - raise NotImplementedError, 'The "web" mode is yet implemented.' + print "Creating %s.html..." % shortname + html = open(shortname + ".html", "w") + html.write("\n") + html.write(" \n") + html.write(" %s\n" % fullname) + html.write(" \n") + html.write(" \n") + html.write(" \n" % appFilename.getBasename()) + html.write(" \n") + html.write("\n") + html.close() except: raise #except InstallerMaker.InstallerMakerError: