running demos on ubuntu 12.10

Asked by Houdong Hu

I installed FEniCS on my pc (OS is ubuntu 12.10).

I try to run all the demos and get the results successfully.

I copy dolfin to my home directory and run all the demos.
But for demo/pde/navier-stokes and demo/la/eigenvalue, I have to go to the directory of the python file and run it. Otherwise it can not read the file. I am pretty new in python, is that if I want to run some scripts with some input, I have to go to the specific directory of the python script and run it, other wise it can not find the inputfile? Or what I can do so that I can run it from home directory?

Thanks for any comments,
Houdong

Question information

Language:
English Edit question
Status:
Solved
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Solved by:
Houdong Hu
Solved:
Last query:
Last reply:
Revision history for this message
Houdong Hu (vincehouhou) said :
#1

I see the problem, just add the full path of that file into script and then it works.