Log starting directory during initialization
authorJeremy Stanley <fungi@yuggoth.org>
Sun, 1 Sep 2019 21:35:00 +0000 (21:35 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Sun, 1 Sep 2019 21:35:00 +0000 (21:35 +0000)
Update the initialization logging to also include the starting
directory, since some of the startup routines form their file paths
relative to it.

mudpy/misc.py

index 1b2be37..b83215c 100644 (file)
@@ -2078,8 +2078,9 @@ def setup():
     log("Import path: %s" % ", ".join(sys.path), 1)
     log("Installed dependencies: %s" % universe.versions.dependencies_text, 1)
     log("Other python packages: %s" % universe.versions.environment_text, 1)
-    log("Started %s with command line: %s" % (
-        universe.versions.version, " ".join(sys.argv)), 1)
+    log("Running version: %s" % universe.versions.version, 1)
+    log("Initial directory: %s" % universe.startdir, 1)
+    log("Command line: %s" % " ".join(sys.argv), 1)
 
     # pass the initialized universe back
     return universe