-í .I>cs2dZdkZdd„Zdfd„ƒYZdS(s0Utilities for setting up the server environment.Nics^|}xM|oEtii|ƒ}| p |djotiƒ}n|d8}q W|SdS(s*Return the ancestor of p from n levels up.s.iN(spsdsnsosspathsdirnamesgetcwd(spsnsd((s0/usr/pkg/lib/python2.2/site-packages/ZEO/util.pys parentdirss EnvironmentcstZdZd„ZRS(s·Determine location of the Data.fs & ZEO_SERVER.pid files. Pass the argv[0] used to start ZEO to the constructor. Use the zeo_pid and fs attributes to get the filenames. cstiidƒ}|tjoKt|dƒ}tii tii |dƒƒo |}n ti ƒ}n||_ tii |dƒ|_tii |iƒ o|i |_ntiidƒ}|tjotii |idƒ}n||_tii |idƒ|_dS(Ns INSTANCE_HOMEisvarsZEO_SERVER_PIDsZEO_SERVER.pidsData.fs(sossenvironsgetsvsNones parentdirsargv0spspathsisdirsjoinsgetcwdsselfshomesvarspidszeo_pidsfs(sselfsargv0spsvspid((s0/usr/pkg/lib/python2.2/site-packages/ZEO/util.pys__init__$s "    (s__name__s __module__s__doc__s__init__(((s0/usr/pkg/lib/python2.2/site-packages/ZEO/util.pys Environments (s__doc__soss parentdirs Environment(s Environments parentdirsos((s0/usr/pkg/lib/python2.2/site-packages/ZEO/util.pys?s