{"action":"opened","issue":{"url":"https://api.github.com/repos/BALL-Project/ball/issues/18","labels_url":"https://api.github.com/repos/BALL-Project/ball/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/BALL-Project/ball/issues/18/comments","events_url":"https://api.github.com/repos/BALL-Project/ball/issues/18/events","html_url":"https://github.com/BALL-Project/ball/issues/18","id":58206091,"number":18,"title":"Strange behaviour of getDataPath() using Mac OS X","user":{"login":"anhi","id":1349738,"avatar_url":"https://avatars.githubusercontent.com/u/1349738?v=3","gravatar_id":"","url":"https://api.github.com/users/anhi","html_url":"https://github.com/anhi","followers_url":"https://api.github.com/users/anhi/followers","following_url":"https://api.github.com/users/anhi/following{/other_user}","gists_url":"https://api.github.com/users/anhi/gists{/gist_id}","starred_url":"https://api.github.com/users/anhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anhi/subscriptions","organizations_url":"https://api.github.com/users/anhi/orgs","repos_url":"https://api.github.com/users/anhi/repos","events_url":"https://api.github.com/users/anhi/events{/privacy}","received_events_url":"https://api.github.com/users/anhi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/BALL-Project/ball/labels/C:%20BALL%20Core","name":"C: BALL Core","color":"0000aa"},{"url":"https://api.github.com/repos/BALL-Project/ball/labels/P:%20major","name":"P: major","color":"f6f6f6"},{"url":"https://api.github.com/repos/BALL-Project/ball/labels/R:%20invalid","name":"R: invalid","color":"55ff55"},{"url":"https://api.github.com/repos/BALL-Project/ball/labels/T:%20defect","name":"T: defect","color":"cccccc"}],"state":"closed","locked":false,"assignee":{"login":"anhi","id":1349738,"avatar_url":"https://avatars.githubusercontent.com/u/1349738?v=3","gravatar_id":"","url":"https://api.github.com/users/anhi","html_url":"https://github.com/anhi","followers_url":"https://api.github.com/users/anhi/followers","following_url":"https://api.github.com/users/anhi/following{/other_user}","gists_url":"https://api.github.com/users/anhi/gists{/gist_id}","starred_url":"https://api.github.com/users/anhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anhi/subscriptions","organizations_url":"https://api.github.com/users/anhi/orgs","repos_url":"https://api.github.com/users/anhi/repos","events_url":"https://api.github.com/users/anhi/events{/privacy}","received_events_url":"https://api.github.com/users/anhi/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-02-19T13:10:48Z","updated_at":"2015-02-19T13:10:48Z","closed_at":"2015-02-19T13:10:48Z","body":"**Reported by Florian Kirchner on 2 Dec 38772785 19:06 UTC**\nThe following code runs without Problems under Linux:\n    Path* path = new Path();\n    String data = path->getDataPath();\n    delete path;\n    cout << path << endl;\nUsing Mac OS X the result is a String with the Datapath twice seperated by a newline. For example:\n\"/Users/florian/BALL-1.1/data\n/Users/florian/BALL-1.1/data/\"\nThe extra slash in the second part is the only difference between both. I have BALL_DATA_PATH set on\n\"/Users/florian/BALL-1.1/data\" (without slash)\nI run the Code on a G4, Mac OS X 10.3.9, Darwin 7.9.0 .\n\n'''Solution:''' As a workarround I use c:\n\n#include \n#include \n\nString data = getenv(\"BALL_DATA_PATH\");"}}