comparison mercurial/posix.py @ 16383:f5dd179bfa4a

plan9: initial support for plan 9 from bell labs This patch contains support for Plan 9 from Bell Labs. A README is provided in contrib/plan9 which describes the port in greater detail. A new extension is also provided named factotum which permits the factotum(4) authentication agent to provide credentials for HTTP repositories. This extension is also applicable to other POSIX platforms which make use of Plan 9 from User Space (aka plan9ports).
author Steven Stallion <sstallion@gmail.com>
date Sun, 08 Apr 2012 12:43:41 -0700
parents 60cc3a0d2249
children 7002bb17cc5e
comparison
equal deleted inserted replaced
16382:f542d291c4f2 16383:f5dd179bfa4a
331 return None 331 return None
332 332
333 if os.sep in command: 333 if os.sep in command:
334 return findexisting(command) 334 return findexisting(command)
335 335
336 if sys.platform == 'plan9':
337 return findexisting(os.path.join('/bin', command))
338
336 for path in os.environ.get('PATH', '').split(os.pathsep): 339 for path in os.environ.get('PATH', '').split(os.pathsep):
337 executable = findexisting(os.path.join(path, command)) 340 executable = findexisting(os.path.join(path, command))
338 if executable is not None: 341 if executable is not None:
339 return executable 342 return executable
340 return None 343 return None