[pypy-issue] Issue #2037: Possible import problem (pypy/pypy)

ceridwenv issues-reply at bitbucket.org
Mon May 4 16:15:33 CEST 2015


New issue 2037: Possible import problem
https://bitbucket.org/pypy/pypy/issue/2037/possible-import-problem

ceridwenv:

 I have a directory with two files and no `__init__.py`, `pmv` and `rename_by_title.py`.  In `pmv`, I have:

```
#!bash

from rename_by_title import *
```

When I call `pmv` using an absolute path using pypy like:


```
#!bash

pypy ~/code/scripts/pdf_namer/pmv
```

The import fails.  On cpython 2.7.9, it succeeds.

Both sys.paths have '' in them and no other directory that should include my home directory (the other entries all point to /usr/).  This is on an Ubuntu 15.04 system using packaged cpython and pypy from the PPA.




More information about the pypy-issue mailing list