This repository was archived by the owner on Jul 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Customizable working directory #165
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestfuture-releaseswontfixThis will not be worked onThis will not be worked on
Description
Add an option for selecting where to place the working directory (.co2mpas). It could be during the installation or adding a setting menu so it can be specified after the installation.
An alternative could be to move the working directory .co2mpas inside the installation path (it could be also the package folder), so the user can uninstall co2mpas and all sensitive data once deleting the installation folder.
To create the CO2MPAS_HOME variable, so you can use in the rest of your code, you can add the following code in the init file and create a new directory home in the library folder
import os
import os.path as osp
CO2MPAS_HOME = os.environ.get('CO2MPAS_HOME', osp.join(osp.dirname(__file__), 'home'))
os.environ['CO2MPAS_HOME'] = CO2MPAS_HOME
Note the latest solution is not the best approach but it works and should be fast to integrate.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestfuture-releaseswontfixThis will not be worked onThis will not be worked on