You need to call PyImport_ReloadModule (
http://docs.python.org/2/c-api/import.html).
There isn't a direct interface to this in PyCall at the moment, though, so
you would need to use ccall for now: something like
mymodule = pywrap(PyObject(ccall(pysym(:PyImport_ReloadModule), PyPtr,
(PyPtr,), pyimport("mymodule"))))
where "mymodule" is the name of your module.
On Friday, January 31, 2014 5:13:14 AM UTC-5, Buote Xu wrote:
>
> I'm not sure this is the correct place, but I'll just ask:
> When I use @pyimport on a file, is there a way to reload it later on after
> making changes to it, during the same julia session?
>
> Thanks for any pointers,
> Buote Xu
>