sapling/eden/fs/cli
Katie Mancini a46707cc19 Fix eden du --clean on MacOS
Summary:
`eden du --clean` currently fails with

```
Fatal Python error: initfsencoding: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'
```
Full error: P149352812

It looks like this is because Buck expects to run with a different python, so
here I clear out the PYTHONHOME variable before we start buck.

This reuses out logic used elsewhere to clean up the environment before
calling buck.

Reviewed By: wez

Differential Revision: D24904105

fbshipit-source-id: 73587c52aff3ea00f68339eb44e7042329de2e44
2020-11-20 17:25:55 -08:00
..
doctor Apply pyfmt to fbcode/eden 2020-10-04 04:51:00 -07:00
test Apply pyfmt to fbcode/eden 2020-10-04 04:51:00 -07:00
__init__.py remediation of S205607 2020-07-17 17:16:13 -07:00
buck.py Fix eden du --clean on MacOS 2020-11-20 17:25:55 -08:00
CMakeLists.txt Move eden.cli namespace to eden.fs.cli 2020-03-25 11:46:56 -07:00
cmd_util.py update eden du to display an aggregated result of all mounts. 2020-06-10 19:29:25 -07:00
config.py unify uptime cli command 2020-10-30 16:40:08 -07:00
configinterpolator.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
configutil.py Convert type check targets in eden to use configuration 2020-05-08 15:24:57 -07:00
daemon_util.py win: add eden.exe to the package 2020-09-08 16:33:55 -07:00
daemon.py cli: start edenfs without inheriting the console 2020-10-30 12:32:50 -07:00
debug_posix.py suppress errors in eden - batch 1 2020-07-20 13:29:51 -07:00
debug.py cli: fix eden debug modified alias 2020-11-16 08:25:03 -08:00
filesystem.py cli: enable doctor on Windows 2020-08-28 19:49:37 -07:00
fsck.py Move cli/ directory from eden/ to eden/fs (Without changing namespace) 2020-03-25 11:18:30 -07:00
hg_util.py suppress errors in eden - batch 1 2020-07-20 13:29:51 -07:00
logfile.py Update pyre version for eden 2020-04-23 12:09:39 -07:00
main.py Fix eden du --clean on MacOS 2020-11-20 17:25:55 -08:00
mtab.py Move eden.cli namespace to eden.fs.cli 2020-03-25 11:46:56 -07:00
overlay.py apply pyfmt with usort to opted-in sources 2020-11-10 21:25:54 -08:00
prefetch_profile.py Change Prefetch Profiles command name 2020-11-13 12:28:15 -08:00
prefetch.py Skip metadata prefetch in eden prefetch 2020-11-13 11:51:39 -08:00
proc_utils_win.py service: unify startup on Windows/Linux/macOS 2020-10-22 16:24:17 -07:00
proc_utils.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
rage.py unify uptime cli command 2020-10-30 16:40:08 -07:00
redirect.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
stats_print.py remove stats memory command 2020-05-05 12:09:11 -07:00
stats.py update stats local-store column list 2020-09-30 15:16:00 -07:00
subcmd.py allow async subcmd run functions 2020-06-22 11:27:11 -07:00
systemd_service.py make systemd management functions explicitly async 2020-07-07 11:31:33 -07:00
systemd.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
tabulate.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
telemetry.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
top.py fix eden top on mac 2020-11-10 15:30:29 -08:00
trace_cmd.py add eden trace hg command 2020-11-19 13:02:42 -08:00
trace.py rename EdenInstance.get_thrift_client to get_thrift_client_legacy 2020-09-17 13:25:00 -07:00
ui.py Convert type check targets in eden to use configuration 2020-05-02 21:16:55 -07:00
util.py Allow backgrounding profile prefetches 2020-10-29 13:34:05 -07:00
version.py update edenfsctl to report the compile-time version 2020-04-22 12:48:48 -07:00
win_ui.py Move cli/ directory from eden/ to eden/fs (Without changing namespace) 2020-03-25 11:18:30 -07:00