Since daemonization explicitly changes the working directory to "/",
specifying a mudpy.filing.prefix of "." should be taken to refer to
the original starting directory recorded in Universe.startdir rather
than the current directory for the process.
prefix = os.path.join(universe.startdir, prefix)
# when no root path is specified, assume the current working directory
- if not prefix:
- prefix = os.getcwd()
+ if (not prefix or prefix == ".") and hasattr(universe, "startdir"):
+ prefix = universe.startdir
# make sure it's absolute
prefix = os.path.realpath(prefix)