paths removed and Set Path saved yet removed paths reappear at start up

2 Ansichten (letzte 30 Tage)
Tom Patno
Tom Patno am 3 Mär. 2021
Kommentiert: David Schmitz am 17 Feb. 2023
Hi:
Some paths were previously set that are now causing errors when I restart MATLAB and run a script. I open Set Path, highlight the paths to remove & remove them, I save, then close.
The paths are in Set Path at every restart.
Please advise
  1 Kommentar
David Schmitz
David Schmitz am 10 Feb. 2023
Bearbeitet: David Schmitz am 10 Feb. 2023
Hi,
For me it's the same Problem I don't get rid of some path entrys even after rmoving them and saving.
Could you please help.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Luca Ferro
Luca Ferro am 10 Feb. 2023
Bearbeitet: Luca Ferro am 10 Feb. 2023
2 alternative methods i would try:
1.
rmpath(genpath(topLevelFolder)); %in case it has subfolders that create issues genpath may be necessary
rehash toolboxcache
2.
restoredefaultpath %if you dont care about the your current path tree, this will reset it to factory
rehash toolboxcache
  1 Kommentar
David Schmitz
David Schmitz am 17 Feb. 2023
Thank you, the problem were due to a third party tool saving the path even through Matlab restarts

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Search Path finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by