Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python: cd option problems. #16

Open
seriyps opened this issue Mar 13, 2014 · 0 comments
Open

Python: cd option problems. #16

seriyps opened this issue Mar 13, 2014 · 0 comments

Comments

@seriyps
Copy link

seriyps commented Mar 13, 2014

Looks like cd option introduce some problems:

1> PyBaseDir = "/home/seriy/workspace/mediamon_crawl/priv/py_trash_filter",
1> Virtualenv = PyBaseDir ++ "/pyenv",
1> Python = Virtualenv ++ "/bin/python2.7".
2> python:start([{env, [{"VIRTUAL_ENV", Virtualenv}]},
                 {python, Python},
                 {python_path, [PyBaseDir]}]).
{ok,<0.355.0>}
3> python:start([{env, [{"VIRTUAL_ENV", Virtualenv}]},
                 {python, Python},
                 {python_path, [PyBaseDir]},
                 {cd, PyBaseDir}]).
{ok,<0.357.0>}
/home/seriy/workspace/mediamon_crawl/priv/py_trash_filter/pyenv/bin/python2.7: No module named erlport

Looks like this is because https://github.com/hdima/erlport/blob/1.0.0alpha/src/python_options.erl#L119 generate relative path. Maybe wrap it with filemane:absname/1?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant