[Mac] 將路徑加入系統路徑目錄清單

如何將可執行檔路徑加到系統路徑清單:http://osxdaily.com/2014/08/14/add-new-path-to-path-command-line/

如何移除:https://stackoverflow.com/questions/11650840/remove-redundant-paths-from-path-variable

如此系統在執行 python 程式,需要呼叫執行檔時,就會去這些目錄清單中找到對應的執行檔,然後啟動,如果要納入新的搜尋範圍,就要加 path(絕對路徑) 到路徑中,以我現在碰到的情況,我加上了「桌面」的路徑(/Users/apple/Desktop)。

留言

熱門文章