Dear All,

Everytime i want to logg off or restart to set python path so how to avoid this logg off or restart options.

Actually iam using two Softwares using this different Pythonpath
if iam using second software means again i want to restart Pc how to avoid this Situation.


regards
User

Recommended Answers

All 3 Replies

What Operating System are you using?
You can append to the pythonpath in each your programs.

You can just do

import sys
sys.path.append('pythonpathhere')

Here is another option to help Python to locate custom modules in custom directories:

If you want to import custom module xyq via the Pythonpath
create a file xyq.pth and stick it into a directory python
will look into, like C:\Python25\Lib\site-packages
The .pth file contains a line showing the directory
in which module xyq is located, for instance:
C:\Python25\Mymodules

commented: Ah beat me to it! :) +2
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.