[tuxdroid-svn] r5378 - software_suite_v3/smart-core/smart-server/branches/user_mode/util/applicatio
Status: Beta
Brought to you by:
ks156
|
From: ks156 <c2m...@c2...> - 2009-09-14 12:43:07
|
Author: ks156
Date: 2009-09-14 14:20:09 +0200 (Mon, 14 Sep 2009)
New Revision: 5378
Modified:
software_suite_v3/smart-core/smart-server/branches/user_mode/util/applicationserver/gadget/GadgetGenerator.py
Log:
* Fixed a bug with the gadget creation.
Modified: software_suite_v3/smart-core/smart-server/branches/user_mode/util/applicationserver/gadget/GadgetGenerator.py
===================================================================
--- software_suite_v3/smart-core/smart-server/branches/user_mode/util/applicationserver/gadget/GadgetGenerator.py 2009-09-14 11:41:51 UTC (rev 5377)
+++ software_suite_v3/smart-core/smart-server/branches/user_mode/util/applicationserver/gadget/GadgetGenerator.py 2009-09-14 12:20:09 UTC (rev 5378)
@@ -442,7 +442,10 @@
tmpFile = open(os.path.join(tmpRootDir, "help.wiki"), "w")
tmpFile.write(helpFileContent)
tmpFile.close()
- tmpGadgetFile = "gadget_%s.scg" % gadgetUuid
+ if os.name == 'nt':
+ tmpGadgetFile = "gadget_%s.scg" % gadgetUuid
+ else:
+ tmpGadgetFile = "/tmp/gadget_%s.scg" % gadgetUuid
zout = zipfile.ZipFile(tmpGadgetFile, "w")
zout.write(os.path.join(tmpRootDir, "gadget.xml"), "gadget.xml")
zout.write(os.path.join(tmpRootDir, "gadget.png"), "gadget.png")
|