mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
Update _find_default_daemon_binary() because the binary is always named edenfs.
Reviewed By: simpkins Differential Revision: D3492527 fbshipit-source-id: b74859ebd2cfac55568bdb170a863d78607ad108
This commit is contained in:
parent
35add0f007
commit
911b0bde9b
@ -249,7 +249,7 @@ def do_daemon(args):
|
||||
def _find_default_daemon_binary():
|
||||
# By default, we look for the daemon executable alongside this file.
|
||||
script_dir = os.path.dirname(os.path.abspath(sys.argv[0]))
|
||||
candidate = os.path.join(script_dir, 'daemon')
|
||||
candidate = os.path.join(script_dir, 'edenfs')
|
||||
permissions = os.R_OK | os.X_OK
|
||||
if os.access(candidate, permissions):
|
||||
return candidate
|
||||
|
Loading…
Reference in New Issue
Block a user