index out of range
when i want to Import Yade in other Python applications, i do the command as https:/
$ cd /path/where/
$ ln -s /path/to/
then
import sys
sys.path.
from yadeimport import *
but at this step, the error is "indexerror: index out of range"
the relevant lines are
"except ImportError: # argparse not present, print error message
raise RuntimeError(
prog = os.path.
par=argparse.
prog=
i think it may be induced by the sys.argv[0], but i don't know how to amend it.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
This question was reopened
- by sunwei
Can you help with this problem?
Provide an answer of your own, or ask sunwei for more information if necessary.