OpenDrift / opendrift

Open source framework for ocean trajectory modelling
https://opendrift.github.io
GNU General Public License v2.0
249 stars 120 forks source link

How Can I use bat file of cmd to run the leeway demo? #333

Closed limaolin1981611 closed 4 years ago

limaolin1981611 commented 4 years ago

I have installed the Anaconda correctly and added the envionment variables to the Path. Then, I can use cmd to run the leeway demo step by step. But if I write all commands in the bat file, it's not worked. How Can I use the bat file to run the leeway demo automatic. The commands of bat file are as follows:

E: cd Project\SAR\opendrift-master conda activate opendrift pause python leeway_fun.py pause

limaolin1981611 commented 4 years ago

According to https://docs.conda.io/projects/conda/en/latest/user-guide/troubleshooting.html#using-conda-in-windows-batch-script-exits-early, I have solved the problem. I changed to commands as follows: E: cd Project\SAR\opendrift-master CALL conda activate opendrift python leeway_fun.py pause

knutfrode commented 4 years ago

Good. Thanks for sharing the solution.