Hello,
I hit a weird behavior when I try to import one module I wrote in Nim.
First case
The file mymodule.so is on the current directory.
import mymodule
mymodule.doSomeStuff()
Everything is fine during the process of doSomeStuff
Second case
The file mymodule.so is in a directory called mymodule next to an empty __init__.py file.
from mymodule import mymodule
mymodule.doSomeStuff()
I hit a SIGSEGV during the process of doSomeStuff (GC issue during the middle of a string manipulation).
Is this behavior normal or does I missed something ?
Thanks
EDIT:
Using this method works fine too:
import mymodule.mymodule
mymodule.mymodule.doSomeStuff()
I guess using import ... from ... remap some stuff and break something ?
Hello,
I hit a weird behavior when I try to import one module I wrote in Nim.
First case
The file
mymodule.sois on the current directory.Everything is fine during the process of
doSomeStuffSecond case
The file
mymodule.sois in a directory calledmymodulenext to an empty__init__.pyfile.I hit a SIGSEGV during the process of
doSomeStuff(GC issue during the middle of a string manipulation).Is this behavior normal or does I missed something ?
Thanks
EDIT:
Using this method works fine too:
I guess using
import ... from ...remap some stuff and break something ?