{"action":"created","issue":{"url":"https://api.github.com/repos/RaiMan/SikuliX-2014/issues/216","repository_url":"https://api.github.com/repos/RaiMan/SikuliX-2014","labels_url":"https://api.github.com/repos/RaiMan/SikuliX-2014/issues/216/labels{/name}","comments_url":"https://api.github.com/repos/RaiMan/SikuliX-2014/issues/216/comments","events_url":"https://api.github.com/repos/RaiMan/SikuliX-2014/issues/216/events","html_url":"https://github.com/RaiMan/SikuliX-2014/issues/216","id":162868142,"number":216,"title":"Loading from wrong directory","user":{"login":"audus","id":20202284,"avatar_url":"https://avatars.githubusercontent.com/u/20202284?v=3","gravatar_id":"","url":"https://api.github.com/users/audus","html_url":"https://github.com/audus","followers_url":"https://api.github.com/users/audus/followers","following_url":"https://api.github.com/users/audus/following{/other_user}","gists_url":"https://api.github.com/users/audus/gists{/gist_id}","starred_url":"https://api.github.com/users/audus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/audus/subscriptions","organizations_url":"https://api.github.com/users/audus/orgs","repos_url":"https://api.github.com/users/audus/repos","events_url":"https://api.github.com/users/audus/events{/privacy}","received_events_url":"https://api.github.com/users/audus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-06-29T08:27:23Z","updated_at":"2016-07-04T09:34:33Z","closed_at":null,"body":"I have a lot of codes in one library where one main code imports all other scripts and run their functions in a specific order to make a test. I have created a very similar system before on 1.0.1 and I have come far without any unsolvable problem.\r\nHere's kinda what it looks like:\r\n\r\nfrom sikuli import * # importing full sikuli to prevent import errors in main.sikuli\r\nimport os\r\nimport shutil\r\n\r\nprint \"importing\"\r\nimport start_l\r\nimport start_x\r\nimport close_x\r\nimport start_s\r\nimport close_l\r\nimport close_s\r\nimport test_s\r\nprint \"import done\"\r\n\r\ntheFailure = None\r\nSettings.MoveMouseDelay = 1.5\r\n\r\ntry:\r\n    start_l.start_l()\r\n    wait(3)\r\n    start_x.startx()\r\n    start_s.start()\r\n    test_s.test()\r\n\r\nBut now when i run my code it gives me this error halfway through the second function,\r\n[error] Image: could not be loaded: file:/C:/jenkins2/workspace/test/test_s.sikuli/1453217794652.png\r\n[error] Image: Image not valid, but TextSearch is switched off!\r\nIts loading the right image but from the wrong directory as the function being run is start_x.startx() which is actually almost copied from the working 1.0.1 script(1.0.1 script works in 1.1.0). start_x is imported correctly and work when run separately. All the other parts of the script work since this function was newly added and none have had the problem of loading from the wrong directory.\r\nThanks in advance for help given even if its a workaround, bugfix or just pointing out where I'm wrong!"},"comment":{"url":"https://api.github.com/repos/RaiMan/SikuliX-2014/issues/comments/230248225","html_url":"https://github.com/RaiMan/SikuliX-2014/issues/216#issuecomment-230248225","issue_url":"https://api.github.com/repos/RaiMan/SikuliX-2014/issues/216","id":230248225,"user":{"login":"audus","id":20202284,"avatar_url":"https://avatars.githubusercontent.com/u/20202284?v=3","gravatar_id":"","url":"https://api.github.com/users/audus","html_url":"https://github.com/audus","followers_url":"https://api.github.com/users/audus/followers","following_url":"https://api.github.com/users/audus/following{/other_user}","gists_url":"https://api.github.com/users/audus/gists{/gist_id}","starred_url":"https://api.github.com/users/audus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/audus/subscriptions","organizations_url":"https://api.github.com/users/audus/orgs","repos_url":"https://api.github.com/users/audus/repos","events_url":"https://api.github.com/users/audus/events{/privacy}","received_events_url":"https://api.github.com/users/audus/received_events","type":"User","site_admin":false},"created_at":"2016-07-04T09:34:33Z","updated_at":"2016-07-04T09:34:33Z","body":"make that a third time it happened\r\n"}}
{"actor":{"display_login":"audus"}}