Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ben Boeckel
ParaView
Commits
d93c7a73
Commit
d93c7a73
authored
Jun 29, 2004
by
Sebastien Barre
Browse files
fix the ApplicationInstallationDirectory hack (better)
parent
fe3fa4b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
GUI/Client/vtkPVApplication.cxx
View file @
d93c7a73
...
...
@@ -109,7 +109,7 @@
//----------------------------------------------------------------------------
vtkStandardNewMacro
(
vtkPVApplication
);
vtkCxxRevisionMacro
(
vtkPVApplication
,
"1.29
0
"
);
vtkCxxRevisionMacro
(
vtkPVApplication
,
"1.29
1
"
);
vtkCxxSetObjectMacro
(
vtkPVApplication
,
RenderModule
,
vtkPVRenderModule
);
...
...
@@ -2235,11 +2235,11 @@ char* vtkPVApplication::GetDemoPath()
if
(
this
->
GetApplicationInstallationDirectory
())
{
sprintf
(
temp1
,
"%s/
../
Demos/Demo1.pvs"
,
sprintf
(
temp1
,
"%s/Demos/Demo1.pvs"
,
this
->
GetApplicationInstallationDirectory
());
if
(
stat
(
temp1
,
&
fs
)
==
0
)
{
sprintf
(
temp1
,
"%s/
../
Demos"
,
sprintf
(
temp1
,
"%s/Demos"
,
this
->
GetApplicationInstallationDirectory
());
this
->
SetDemoPath
(
temp1
);
found
=
1
;
...
...
@@ -2436,3 +2436,25 @@ vtkKWLoadSaveDialog* vtkPVApplication::NewLoadSaveDialog()
return
dialog
;
}
void
vtkPVApplication
::
FindApplicationInstallationDirectory
()
{
this
->
Superclass
::
FindApplicationInstallationDirectory
();
if
(
!
this
->
ApplicationInstallationDirectory
)
{
return
;
}
// Paraview is installed in the bin/ directory. Strip it off if found.
// This will only happen if the binary has been installed. No change is
// made if the path is retrieved from the registery, or if the binary
// is a 'build'.
int
length
=
strlen
(
this
->
ApplicationInstallationDirectory
);
if
(
length
>=
4
&&
!
strcmp
(
this
->
ApplicationInstallationDirectory
+
length
-
4
,
"/bin"
))
{
this
->
ApplicationInstallationDirectory
[
length
-
4
]
=
'\0'
;
}
}
GUI/Client/vtkPVApplication.h
View file @
d93c7a73
...
...
@@ -430,6 +430,8 @@ protected:
int
CheckRegistration
();
int
PromptRegistration
(
char
*
,
char
*
);
virtual
void
FindApplicationInstallationDirectory
();
vtkPVProcessModule
*
ProcessModule
;
vtkPVRenderModule
*
RenderModule
;
char
*
RenderModuleName
;
...
...
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