My thanks to Robin Dunn for MakeAppWorkDir, it rocks. But, when I try
"./AppServer stop", it can't find appserverpid.txt. Anyone have a
quick fix? The problem code is in AppServer.py/stop(), see below..
In AppServer.py:
class AppServer:
def recordPID(self):
"""
Save the pid of the AppServer to a file name appserverpid.txt.
"""
pidfile = open(os.path.join(self._serverSidePath,
"appserverpid.txt"),"w")
[snip]
def stop(*args):
# This isn't the same logic that creates the file and fails when
using MakeAppWorkDir..
pidfile = os.path.join(os.path.dirname(__file__),"appserverpid.txt")
# This would be better but "self" is undefined.
pidfile = os.path.join(self._serverSidePath, "appserverpid.txt")
[snip]
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-devel