Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
finstripwrapper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Malo Rosemeier
finstripwrapper
Commits
1d83845a
Commit
1d83845a
authored
7 years ago
by
Malo Rosemeier
Browse files
Options
Downloads
Patches
Plain Diff
check whether xvfb is installed
parent
236449d7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
finstrip_wrapper/core/main.py
+10
-0
10 additions, 0 deletions
finstrip_wrapper/core/main.py
with
10 additions
and
0 deletions
finstrip_wrapper/core/main.py
+
10
−
0
View file @
1d83845a
...
...
@@ -6,6 +6,11 @@ import commands
import
sys
def
cmd_exists
(
cmd
):
return
subprocess
.
call
(
"
type
"
+
cmd
,
shell
=
True
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
==
0
class
FINSTRIPWrapper
(
object
):
'''
A basic wrapper for FINSTRIP that provides three primary functionalities:
...
...
@@ -76,6 +81,11 @@ class FINSTRIPWrapper(object):
'''
status
(
'
FINSTRIPWrapper: Start FINSTRIP execution
'
)
# check if xvfb is installed
if
not
cmd_exists
(
'
xvfb-run
'
):
raise
RuntimeError
(
'
xvfb is not installed on the system. Please do sudo apt-get install xvfb
'
)
self
.
finstrip_work_dir
=
os
.
getcwd
()
# create execution command
cmd_list
=
[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment