-
reloading Libraries
Hi All, Hi Steve,
I am importing my costom library gosLib.py from a folder on C:
import gosLib as gl
I now make some changes to it and save it.
Reset the scripting engine but the global function that I just added in gosLib is not found.
I restart my computer, but still python does not find the function I just added.
My only solution is to rename my file to gosLib_1.py
An then do:
import gosLib_1 as gl
this works now but does not seem to be the right solution. Do you know why python still seems to remember an old version of my library file?
Thanks Goswin
-
Hi Goswin
It might be that you have two gosLib.py files and are importing not the one you are changing. Try if the same thing happens when you start with a different file name and/or search all drives for gosLib.py and see how many there are. If this doesn't help I have no idea.
Cheers,
Silvan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules