Skip to content

Commit

Permalink
Allow compilation in other OSs besides Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
aptmcl committed Sep 9, 2018
1 parent 8ec9c54 commit 145e4b1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/AutoCAD.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ local_plugins = joinpath(dirname(dirname(abspath(@__FILE__))), "Plugins", "AutoC
local_khepri_plugin = joinpath(local_plugins, bundle_name)
local_khepri_plugin_dll_folder = joinpath(local_plugins, bundle_dll_folder)

autocad_general_plugins = joinpath(dirname(joinpath(ENV["CommonProgramFiles"])), "Autodesk", "ApplicationPlugins")
autocad_allusers_plugins = joinpath(ENV["ALLUSERSPROFILE"], "Autodesk", "ApplicationPlugins")
autocad_user_plugins = joinpath(ENV["APPDATA"], "Autodesk", "ApplicationPlugins")
env(name) = Sys.iswindows() ? ENV[name] : ""

autocad_general_plugins = joinpath(dirname(env("CommonProgramFiles")), "Autodesk", "ApplicationPlugins")
autocad_allusers_plugins = joinpath(env("ALLUSERSPROFILE"), "Autodesk", "ApplicationPlugins")
autocad_user_plugins = joinpath(env("APPDATA"), "Autodesk", "ApplicationPlugins")
autocad_khepri_plugin = joinpath(autocad_user_plugins, bundle_name)
autocad_khepri_plugin_dll_folder = joinpath(autocad_user_plugins, bundle_dll_folder)

Expand Down

0 comments on commit 145e4b1

Please sign in to comment.