Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Ensure config dir is writable #135
Issue: on some environments (namely, some automatic CI environments) the home directory is not writable. Featuretools thus fails to install because we attempt to create a ~/.featuretools folder.
This PR resolves this problem by checking if the config folder is writable, and if not, it creates a temporary folder instead. It also allows a user to specify which folder to use for config via an environment variable ($FEATURETOOLS_DIR).
Much of this code was modified from the IPython source:
Lastly, it changes config_yaml.txt to a proper yaml file: config.yaml
@@ Coverage Diff @@ ## master #135 +/- ## ========================================== - Coverage 88.76% 88.68% -0.09% ========================================== Files 75 76 +1 Lines 7803 7845 +42 ========================================== + Hits 6926 6957 +31 - Misses 877 888 +11