X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=mudpy%2Fdata.py;h=99e6d21b8fe3c014b37934216192a3191244daa5;hp=f113369020fd6ef02fd91ea603366b09a4452b39;hb=ccabf1c36488ef0f0a3107f99e9bd43c3b307216;hpb=182e0d2f5d588b71c57272686255a1f6684a2adf 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)