Commit 97b7cb27 authored by Boris Kocherov's avatar Boris Kocherov

cleanup handlerTestCase.py

parent 62fa0ab7
......@@ -30,7 +30,7 @@
import unittest
import sys
from cloudooo import util
from os import environ, path, mkdir, putenv
from os import environ, path, mkdir
from ConfigParser import ConfigParser
from cloudooo.handler.ooo.application.openoffice import openoffice
from cloudooo.handler.ooo.mimemapper import mimemapper
......@@ -71,18 +71,9 @@ def startFakeEnvironment(start_openoffice=True, conf_path=None):
check_folder(working_path, tmp_dir)
if not environ.get('uno_path'):
environ['uno_path'] = uno_path
office_binary_path = config.get("app:main", "office_binary_path")
if not environ.get('office_binary_path'):
environ['office_binary_path'] = office_binary_path
if uno_path not in sys.path:
sys.path.append(uno_path)
fundamentalrc_file = '%s/fundamentalrc' % office_binary_path
if path.exists(fundamentalrc_file) and \
'URE_BOOTSTRAP' not in environ:
putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:%s' % fundamentalrc_file)
if start_openoffice:
default_language = config.get('app:main',
'openoffice_user_interface_language', False,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment