Extensions with data outside of sub-folder?

No. the substring "%AppData%" (case insensitive) is for use in Windows batch files and paths in the explorer bar. (Try pasting into the explorer address bar.)
So it is platform specific. What I’m getting at is that it’s an environment variable which is accessed in Ruby via the hash-like ENV object.

IS_WIN ||=( Sketchup.platform == :platform_win rescue RUBY_PLATFORM !~ /darwin/i )

if IS_WIN
  APPDATA_PATH ||= ENV["APPDATA"] # check for proper encoding!
else # Mac
  APPDATA_PATH ||= "~/Library/Application Support"
end

PLUGIN_DATA_PATH ||= File.join( APPDATA_PATH, "Medeek", PLUGIN_NAME )
2 Likes