{"action":"created","issue":{"url":"https://api.github.com/repos/Ultimaker/Uranium/issues/161","repository_url":"https://api.github.com/repos/Ultimaker/Uranium","labels_url":"https://api.github.com/repos/Ultimaker/Uranium/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/Ultimaker/Uranium/issues/161/comments","events_url":"https://api.github.com/repos/Ultimaker/Uranium/issues/161/events","html_url":"https://github.com/Ultimaker/Uranium/issues/161","id":173467288,"number":161,"title":"getInstallPrefix() returns a wrong path","user":{"login":"sevaa","id":5807738,"avatar_url":"https://avatars.githubusercontent.com/u/5807738?v=3","gravatar_id":"","url":"https://api.github.com/users/sevaa","html_url":"https://github.com/sevaa","followers_url":"https://api.github.com/users/sevaa/followers","following_url":"https://api.github.com/users/sevaa/following{/other_user}","gists_url":"https://api.github.com/users/sevaa/gists{/gist_id}","starred_url":"https://api.github.com/users/sevaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sevaa/subscriptions","organizations_url":"https://api.github.com/users/sevaa/orgs","repos_url":"https://api.github.com/users/sevaa/repos","events_url":"https://api.github.com/users/sevaa/events{/privacy}","received_events_url":"https://api.github.com/users/sevaa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-26T14:31:56Z","updated_at":"2016-09-05T13:08:49Z","closed_at":null,"body":"I'm hacking Cura on Windows. That requires Uranium. I have a clone of Cura repository in d:\\dev\\Cura, a clone of the Uranium repository under d:\\dev\\Uranium. The latter is in PYTHONPATH.\r\n\r\nThe startup file of Cura is d:\\dev\\Cura\\cura_app.py. When I start Cura, sys.argv[0] contains \"D:\\\\dev\\\\Cura\\\\cura_app.py\", and Uranium's UM.Application.getInstallPrefix() returns the parent of that, which is \"d:\\dev\", which can't be right.\r\n\r\nMaybe when Cura is installed into Program Files, the folder hierarchy is different and cura_app.py goes into some folder below the install path."},"comment":{"url":"https://api.github.com/repos/Ultimaker/Uranium/issues/comments/244743183","html_url":"https://github.com/Ultimaker/Uranium/issues/161#issuecomment-244743183","issue_url":"https://api.github.com/repos/Ultimaker/Uranium/issues/161","id":244743183,"user":{"login":"awhiemstra","id":9590386,"avatar_url":"https://avatars.githubusercontent.com/u/9590386?v=3","gravatar_id":"","url":"https://api.github.com/users/awhiemstra","html_url":"https://github.com/awhiemstra","followers_url":"https://api.github.com/users/awhiemstra/followers","following_url":"https://api.github.com/users/awhiemstra/following{/other_user}","gists_url":"https://api.github.com/users/awhiemstra/gists{/gist_id}","starred_url":"https://api.github.com/users/awhiemstra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awhiemstra/subscriptions","organizations_url":"https://api.github.com/users/awhiemstra/orgs","repos_url":"https://api.github.com/users/awhiemstra/repos","events_url":"https://api.github.com/users/awhiemstra/events{/privacy}","received_events_url":"https://api.github.com/users/awhiemstra/received_events","type":"User","site_admin":false},"created_at":"2016-09-05T13:08:49Z","updated_at":"2016-09-05T13:08:49Z","body":"It is actually correct, but getInstalltionPrefix() is rather useless on non-Linux machines or when running directly from source. The installation prefix is assumed to be the directory one level higher than the application's main script, because on Linux the usual installation location is $prefix/bin/$executable. In your case, on Windows, this ends up being C:\\dev. This should cause no problems as far as I know, since we only use it as a base path in certain locations like the resource lookup, which would most of the time just ignore it since it would resolve a resource location to a non-existing directory."}}
{"actor":{"display_login":"awhiemstra"}}