try:
import sys
import e32
+ import os
if e32.in_emulator():
sys.path.append('c:/python/')
- import os.path
- print sys.path
- # print os.path.dirname(__file__)
- # sys.path.append(os.path.dirname(__file__))
- import log.logging
+ # Set up logging
from log.logging import logger as _logger
logger = _logger
- import sys,os
logger.log_stderr()
- sys.stderr.write('stderr logged from default')
-
-
-
- lock=None
-
- from config.config import gtd_directory,read_configurations
- read_configurations()
- from inout.io import safe_chdir
- safe_chdir(gtd_directory)
- print os.getcwd()
-
+
+ # Read config
+ from config import config
+ import inout
+ config.read_configurations()
+ inout.io.safe_chdir(config.gtd_directory)
+
+ # Yield to the scheduler
e32.ao_yield()
- import sys,os
- import config.config, config.defaultconfig
- import gui.gui
from model.projects import Projects
from gui.projects_list.project_list_view import ProjectListView
- import inout.io
from persistence.projects_directory import ProjectsDirectory
- directory = os.path.join(config.config.gtd_directory,'@Projects')
+ directory = os.path.join(config.gtd_directory,'@Projects')
projects = Projects()
projects_directory = ProjectsDirectory(projects)
# projects.process()
projects_view = ProjectListView(projects)
projects_view.run()
- #logger.close()
except Exception, e:
import appuifw,traceback
trace = traceback.extract_tb(sys.exc_info()[2])