{"action":"opened","issue":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/2158","labels_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2158/labels{/name}","comments_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2158/comments","events_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2158/events","html_url":"https://github.com/spyder-ide/spyder/issues/2158","id":58000251,"number":2158,"title":"runfile with path containing apostrophes (quotes) will not work","user":{"login":"spyder-issues-migrator","id":11021581,"avatar_url":"https://avatars.githubusercontent.com/u/11021581?v=3","gravatar_id":"","url":"https://api.github.com/users/spyder-issues-migrator","html_url":"https://github.com/spyder-issues-migrator","followers_url":"https://api.github.com/users/spyder-issues-migrator/followers","following_url":"https://api.github.com/users/spyder-issues-migrator/following{/other_user}","gists_url":"https://api.github.com/users/spyder-issues-migrator/gists{/gist_id}","starred_url":"https://api.github.com/users/spyder-issues-migrator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyder-issues-migrator/subscriptions","organizations_url":"https://api.github.com/users/spyder-issues-migrator/orgs","repos_url":"https://api.github.com/users/spyder-issues-migrator/repos","events_url":"https://api.github.com/users/spyder-issues-migrator/events{/privacy}","received_events_url":"https://api.github.com/users/spyder-issues-migrator/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/spyder-ide/spyder/milestones/16","labels_url":"https://api.github.com/repos/spyder-ide/spyder/milestones/16/labels","id":983235,"number":16,"title":"v2.3.4","description":null,"creator":{"login":"spyder-issues-migrator","id":11021581,"avatar_url":"https://avatars.githubusercontent.com/u/11021581?v=3","gravatar_id":"","url":"https://api.github.com/users/spyder-issues-migrator","html_url":"https://github.com/spyder-issues-migrator","followers_url":"https://api.github.com/users/spyder-issues-migrator/followers","following_url":"https://api.github.com/users/spyder-issues-migrator/following{/other_user}","gists_url":"https://api.github.com/users/spyder-issues-migrator/gists{/gist_id}","starred_url":"https://api.github.com/users/spyder-issues-migrator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyder-issues-migrator/subscriptions","organizations_url":"https://api.github.com/users/spyder-issues-migrator/orgs","repos_url":"https://api.github.com/users/spyder-issues-migrator/repos","events_url":"https://api.github.com/users/spyder-issues-migrator/events{/privacy}","received_events_url":"https://api.github.com/users/spyder-issues-migrator/received_events","type":"User","site_admin":false},"open_issues":49,"closed_issues":3,"state":"open","created_at":"2015-02-17T17:19:03Z","updated_at":"2015-02-17T23:34:03Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-02-17T23:34:03Z","updated_at":"2015-02-17T23:34:03Z","closed_at":null,"body":"_From [mt.bo...@hotmail.com](https://code.google.com/u/112633889236229880690/) on 2015-02-04T15:53:30Z_\n\nPlease note that reporting bugs from Spyder's help menu (\"?\" > \"Report\r\nissue...\") will fill version details for Spyder, Python and Qt in this description for you. \n\nWhat steps will reproduce the problem?\n\n 1. When running a file in the spyder python console, it calls runfile('file location') (if I run from the editor-ie, press F5). The problem with this is if the file address contains a folder with an apostrophe in it, it thinks the string has ended there when there is in fact more of the address.\r\n\r\nFor example:\r\n\r\nrunfile('C:/Users/username/John's Files/Python/Scripts') \r\n\r\nThis will attempt to find a file in a folder C:/Users/username/John, which may or may necessarily exist, and regardless the file I wish to execute obviously isn't located there.\r\n\r\nI can easily correct this myself by calling the file myself and using double quotes as opposed to single quotes. However, I prefer to run from the editor by pressing F5, and its a bit concerning to me that it defaults to using single quotes when F5 is pressed. I'd rather not have to change all my folder names just so that spyder can run files contained in them. \n\nWhat is the expected output? What do you see instead?\n\n I expect the file to run, and instead I get an invalid syntax error on line 1 of the console What version of the product are you using? On what operating system? spyder 2.3.1 on python 3.4 on windows 8.1 \n\nPlease provide any additional information below\n\n.\n\n_Original issue: http://code.google.com/p/spyderlib/issues/detail?id=2158_"}}