{"action":"created","issue":{"url":"https://api.github.com/repos/appium/python-client/issues/98","labels_url":"https://api.github.com/repos/appium/python-client/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/appium/python-client/issues/98/comments","events_url":"https://api.github.com/repos/appium/python-client/issues/98/events","html_url":"https://github.com/appium/python-client/issues/98","id":96558235,"number":98,"title":"'PATH' not defined","user":{"login":"thlengane","id":7370719,"avatar_url":"https://avatars.githubusercontent.com/u/7370719?v=3","gravatar_id":"","url":"https://api.github.com/users/thlengane","html_url":"https://github.com/thlengane","followers_url":"https://api.github.com/users/thlengane/followers","following_url":"https://api.github.com/users/thlengane/following{/other_user}","gists_url":"https://api.github.com/users/thlengane/gists{/gist_id}","starred_url":"https://api.github.com/users/thlengane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thlengane/subscriptions","organizations_url":"https://api.github.com/users/thlengane/orgs","repos_url":"https://api.github.com/users/thlengane/repos","events_url":"https://api.github.com/users/thlengane/events{/privacy}","received_events_url":"https://api.github.com/users/thlengane/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-22T12:34:10Z","updated_at":"2015-07-22T14:48:20Z","closed_at":null,"body":"Hi,\r\n\r\nI am very much new in this. I apologise in advance if my question is lame.\r\n\r\nI am trying to execute \"desired_caps['app'] = PATH('Documents/fnbconnect-bernice-112-B43.tar.gz')\" in python but I am getting 'PATH' not defined. What am I missing here? Please help..\r\n\r\n\\>>> import unittest\r\n\\>>> from appium import webdriver\r\n\\>>> desired_caps = {}\r\n\\>>> desired_caps['platformName'] = 'iOS'\r\n\\>>> desired_caps['platformVersion'] = '8.3'\r\n\\>>> desired_caps['deviceName'] = 'iPhone Simulator'\r\n\\>>> desired_caps['app'] = PATH('Documents/fnbconnect-bernice-112-B43.tar.gz')\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\nNameError: name 'PATH' is not defined\r\n\\>>> \r\n"},"comment":{"url":"https://api.github.com/repos/appium/python-client/issues/comments/123746981","html_url":"https://github.com/appium/python-client/issues/98#issuecomment-123746981","issue_url":"https://api.github.com/repos/appium/python-client/issues/98","id":123746981,"user":{"login":"imurchie","id":2614354,"avatar_url":"https://avatars.githubusercontent.com/u/2614354?v=3","gravatar_id":"","url":"https://api.github.com/users/imurchie","html_url":"https://github.com/imurchie","followers_url":"https://api.github.com/users/imurchie/followers","following_url":"https://api.github.com/users/imurchie/following{/other_user}","gists_url":"https://api.github.com/users/imurchie/gists{/gist_id}","starred_url":"https://api.github.com/users/imurchie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imurchie/subscriptions","organizations_url":"https://api.github.com/users/imurchie/orgs","repos_url":"https://api.github.com/users/imurchie/repos","events_url":"https://api.github.com/users/imurchie/events{/privacy}","received_events_url":"https://api.github.com/users/imurchie/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T14:48:20Z","updated_at":"2015-07-22T14:48:20Z","body":"Sorry, yes, `PATH` is a helper method.\r\n\r\n```python\r\n# Returns abs path relative to this file and not cwd\r\nPATH = lambda p: os.path.abspath(\r\n    os.path.join(os.path.dirname(__file__), p)\r\n)\r\n```"}}