跳轉到內容

OpenSCAD 使用者手冊/路徑

來自華夏公益教科書,開放書籍,開放世界

OpenSCAD 查詢並儲存資源到不同的路徑。這是一個概述。

環境變數

[編輯 | 編輯原始碼]
  • HOME
  • XDG_CONFIG_HOME
  • OPENSCAD_FONT_PATH
  • OPENSCADPATH

每個平臺的根目錄

[編輯 | 編輯原始碼]
  • ResourcesPath
    • Posix
    • Mac OS X: OpenSCAD.app/Contents/Resources
      • Windows
  • DocumentsPath
    • Posix: $HOME/.local/share
    • Mac OS X: [NSDocumentDirectory],通常為 $HOME/Documents
    • Windows XP: [CSIDL_PERSONAL],通常為 C:users\\username\documents\GitHub\OpenScad\
    • Windows Vista->: [CSIDL_PERSONAL],通常為 C:\users\username\documents\GitHub\OpenScad\
  • UserConfigPath
    • Posix: $XDG_CONFIG_HOME/OpenSCAD 或者 $HOME/.config/OpenSCAD
    • Mac: [NSApplicationSupportDirectory],通常為 $HOME/Library/Application Support/OpenSCAD
    • Windows: [CSIDL_LOCAL_APPDATA],通常為 C:\Documents and Settings\username\Local Settings\Application Data

只讀資源

[編輯 | 編輯原始碼]
  • 庫: [ResourcesPath]/libraries
  • 字型: [ResourcesPath]/fonts
  • 渲染顏色方案: [ResourcesPath]/color-schemes/render
  • 編輯器顏色方案: [ResourcesPath]/color-schemes/editor

使用者資源

[編輯 | 編輯原始碼]
  • 庫: $OPENSCADPATH, [DocumentsPath]/OpenSCAD/libraries
  • 字型
  * $HOME/.fonts
  • 渲染顏色方案: [UserConfigPath]/color-schemes/render
  • 編輯器顏色方案: [UserConfigPath]/color-schemes/editor

其他資源

[編輯 | 編輯原始碼]
  • GUI 首選項 (使用 QSettings)
  * Posix: $HOME/.config/OpenSCAD.conf
  * Windows: Registry
  * Mac OS X: $HOME/Library/Preferences/org.openscad.OpenSCAD.plist
  • 備份: [DocumentsPath]/OpenSCAD/backups

本章節基於 https://github.com/openscad/openscad/wiki/Path-locations,由開發者 kintel 編寫

華夏公益教科書