use proper data folders
This commit is contained in:
parent
650d5077ed
commit
837286a970
8 changed files with 63 additions and 25 deletions
|
@ -29,7 +29,7 @@ def readline(message = ''):
|
|||
color = colors.fg.green + colors.bold
|
||||
output = colors.reset + str(color) + '... ' + colors.reset + str(message) + colors.reset
|
||||
|
||||
if not settings.get_settings() & USE_ANSI:
|
||||
if not settings.get_settings() & settings.USE_ANSI:
|
||||
output = colors.filter(output)
|
||||
|
||||
sys.stdout.write(output)
|
||||
|
|
|
@ -18,7 +18,9 @@
|
|||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
'''
|
||||
import os
|
||||
data_home = os.environ.get('DATA_DIR', os.environ.get('DATA_DIR', 'data'))
|
||||
from utils import identifyhome
|
||||
|
||||
data_home = os.environ.get('ONIONR_LOG_DIR', identifyhome.identify_home())
|
||||
# Use the bitwise operators to merge these settings
|
||||
USE_ANSI = 0b100
|
||||
if os.name == 'nt':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue