Author christian.heimes
Recipients asvetlov, chris.jerdonek, christian.heimes, eric.araujo, ezio.melotti, gregory.p.smith, lyapun, neologix, pitrou, r.david.murray, tim.golden
Date 2012-11-05.19:16:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1352142997.24.0.670521460539.issue16353@psf.upfronthosting.co.za>
In-reply-to
Content
I've tested confstr("CS_PATH") on Linux, Mac OS X, Solaris, HP-UX and BSD. It works and the path to `sh` is always included.

Taras:
You don't have to perform the platform inside the get_shell() function. I suggest that you define the function depending on the value of `name`.

if name == "posix":
    def get_shell():
        ...
elif name in {"nt", "ce"}:
    def get_shell():
        ...
History
Date User Action Args
2012-11-05 19:16:37christian.heimessetrecipients: + christian.heimes, gregory.p.smith, pitrou, tim.golden, ezio.melotti, eric.araujo, r.david.murray, asvetlov, chris.jerdonek, neologix, lyapun
2012-11-05 19:16:37christian.heimessetmessageid: <1352142997.24.0.670521460539.issue16353@psf.upfronthosting.co.za>
2012-11-05 19:16:37christian.heimeslinkissue16353 messages
2012-11-05 19:16:37christian.heimescreate