I didn't knew that we need to restart the interpreter if we set the environment variable : PYTHONPATH
Now this looks something not so tidy..
Suppose, if we have two python modules with same name: - abc.py in two different directories..
And I have added both the directories in the PYTHONPATH.
Now, if I write: -
in one my module..
Which abc.py will get imported??
Also, apart from the above solution (Setting PYHTONPATH environment variable), I have also found one more way to set directory..
This is by creating a text file with extension (.pth) containing all the directories, and put it in /site-packages directory..
Want to ask, which one would be a better way??
1). PYTHONPATH, or
2). somfile.pth in site-packages directory??
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com