X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=mudpy%2Fdata.py;h=99e6d21b8fe3c014b37934216192a3191244daa5;hp=f113369020fd6ef02fd91ea603366b09a4452b39;hb=55687ca44e062ece698b387f5d7018f63e9aa796;hpb=c29c06f95bcfb6f0e67be579d2f04e273ab43e9a diff --git a/mudpy/data.py b/mudpy/data.py index f113369..99e6d21 100644 --- a/mudpy/data.py +++ b/mudpy/data.py @@ -215,8 +215,8 @@ def find_file( 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)