~lisahj/gtg/taskgrouping

« back to all changes in this revision

Viewing changes to GTG/core/__init__.py

  • Committer: Nimit Shah
  • Date: 2014-03-10 03:37:32 UTC
  • mfrom: (1360.2.18 test-cleanup)
  • Revision ID: nimit.svnit@gmail.com-20140310033732-n4od1z8npybs4ooc
Rework of test-suite, by Izidor Matušov

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
import os
44
44
 
45
45
from GTG.tools.borg import Borg
46
 
from GTG.tools.testingmode import TestingMode
47
46
import GTG
48
47
 
49
48
DEFAULTS = {
219
218
        if hasattr(self, 'data_dir'):
220
219
            # Borg has already been initialized
221
220
            return
222
 
        if TestingMode().get_testing_mode():
223
 
            # we avoid running tests in the user data dir
224
 
            self.data_dir = '/tmp/GTG_TESTS/data'
225
 
            self.conf_dir = '/tmp/GTG_TESTS/conf'
226
 
        else:
227
 
            self.data_dir = os.path.join(xdg_data_home, 'gtg/')
228
 
            self.conf_dir = os.path.join(xdg_config_home, 'gtg/')
 
221
        self.data_dir = os.path.join(xdg_data_home, 'gtg/')
 
222
        self.conf_dir = os.path.join(xdg_config_home, 'gtg/')
229
223
        if not os.path.exists(self.conf_dir):
230
224
            os.makedirs(self.conf_dir)
231
225
        if not os.path.exists(self.data_dir):