Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cloudooo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
cloudooo
Commits
97b7cb27
Commit
97b7cb27
authored
May 31, 2019
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup handlerTestCase.py
parent
62fa0ab7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
cloudooo/tests/handlerTestCase.py
cloudooo/tests/handlerTestCase.py
+1
-10
No files found.
cloudooo/tests/handlerTestCase.py
View file @
97b7cb27
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
import
unittest
import
unittest
import
sys
import
sys
from
cloudooo
import
util
from
cloudooo
import
util
from
os
import
environ
,
path
,
mkdir
,
putenv
from
os
import
environ
,
path
,
mkdir
from
ConfigParser
import
ConfigParser
from
ConfigParser
import
ConfigParser
from
cloudooo.handler.ooo.application.openoffice
import
openoffice
from
cloudooo.handler.ooo.application.openoffice
import
openoffice
from
cloudooo.handler.ooo.mimemapper
import
mimemapper
from
cloudooo.handler.ooo.mimemapper
import
mimemapper
...
@@ -71,18 +71,9 @@ def startFakeEnvironment(start_openoffice=True, conf_path=None):
...
@@ -71,18 +71,9 @@ def startFakeEnvironment(start_openoffice=True, conf_path=None):
check_folder
(
working_path
,
tmp_dir
)
check_folder
(
working_path
,
tmp_dir
)
if
not
environ
.
get
(
'uno_path'
):
if
not
environ
.
get
(
'uno_path'
):
environ
[
'uno_path'
]
=
uno_path
environ
[
'uno_path'
]
=
uno_path
office_binary_path
=
config
.
get
(
"app:main"
,
"office_binary_path"
)
if
not
environ
.
get
(
'office_binary_path'
):
if
not
environ
.
get
(
'office_binary_path'
):
environ
[
'office_binary_path'
]
=
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
:
if
start_openoffice
:
default_language
=
config
.
get
(
'app:main'
,
default_language
=
config
.
get
(
'app:main'
,
'openoffice_user_interface_language'
,
False
,
'openoffice_user_interface_language'
,
False
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment