Score:0

Where is PYTHONPATH added?

at flag

when I checked the PYTHONPATH with

echo $PYTHONPATH

the results is so complicated. I want to remove some lines. However, it s not in the bashrc,profile or enviroment file. Is there any way to fix this problem?

Results are:

/home/../carla-ros-bridge/install/rqt_carla_control/lib/python3.8/site-packages:/home/../carla-ros-bridge/install/carla_waypoint_publisher/lib/python3.8/site-packages:/home/../carla-ros-bridge/install/carla_ackermann_control/lib/python3.8/site-packages:/home/../carla-ros-bridge/install/carla_ros_bridge/lib/python3.8/site-packages:/home/../carla-ros-bridge/install/carla_spawn_objects/lib/python3.8/site-packages:/home/../carla-ros-bridge/install/carla_manual_control/lib/python3.8/site-packages:/home/../carla-ros-bridge/install/carla_ad_agent/lib/python3.8/site-packages:

and it goes more on that. some lines repeat and paths are wrong.

Edit: I used export PYTHONPATH= directly from the terminal and didn't write them in a file. But, my question is, even if I didn't save it to any files, does the system write it in a file or not? Because I want to remove all this complicated PYTHONPATH.

Zehra N. avatar
at flag
no, I used the 'export' command to set the PYTHONPATH environment. but, there should be a file to be saved which I couldn't find.
Zehra N. avatar
at flag
@user535733 I know how to use bashrc and persistent editing. I couldn't edit the current PYTHONPATH because I couldn't find it inside any file. Is it clear now? thanks.
Zehra N. avatar
at flag
I found my answer, thnks.
Score:0
at flag

As this doc indicates, ''Non-existent directories are silently ignored.''. So, there will be no problem with this complicated path.

Other ref

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.