{"action":"opened","issue":{"url":"https://api.github.com/repos/SMART-Lab/smartdispatch/issues/73","labels_url":"https://api.github.com/repos/SMART-Lab/smartdispatch/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/SMART-Lab/smartdispatch/issues/73/comments","events_url":"https://api.github.com/repos/SMART-Lab/smartdispatch/issues/73/events","html_url":"https://github.com/SMART-Lab/smartdispatch/issues/73","id":55158157,"number":73,"title":"smart_dispatch.py -f doesn't work when prepended with a path","user":{"login":"samuelstjean","id":3030760,"avatar_url":"https://avatars.githubusercontent.com/u/3030760?v=3","gravatar_id":"","url":"https://api.github.com/users/samuelstjean","html_url":"https://github.com/samuelstjean","followers_url":"https://api.github.com/users/samuelstjean/followers","following_url":"https://api.github.com/users/samuelstjean/following{/other_user}","gists_url":"https://api.github.com/users/samuelstjean/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelstjean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelstjean/subscriptions","organizations_url":"https://api.github.com/users/samuelstjean/orgs","repos_url":"https://api.github.com/users/samuelstjean/repos","events_url":"https://api.github.com/users/samuelstjean/events{/privacy}","received_events_url":"https://api.github.com/users/samuelstjean/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-22T14:21:04Z","updated_at":"2015-01-22T14:21:04Z","closed_at":null,"body":"Launching a file with commands does not work when the full path is specified.\r\n\r\nstjeans1 ~ $ ls commands.txt \r\n-rw-rw-r-- 1 stjeans1 descotea 9 Jan 22 09:16 commands.txt\r\n\r\n# This works \r\nstjeans1 ~ $ smart_dispatch.py -f commands.txt -q qwork@mp2 launch\r\n\r\n# This doesn't\r\nstjeans1 ~ $ smart_dispatch.py -f /home/stjeans1/commands.txt -q qwork@mp2 launch\r\nTraceback (most recent call last):\r\n  File \"/home/stjeans1/.local/bin/smart_dispatch.py\", line 180, in <module>\r\n    main()\r\n  File \"/home/stjeans1/.local/bin/smart_dispatch.py\", line 47, in main\r\n    path_job, path_job_logs, path_job_commands = create_job_folders(jobname)\r\n  File \"/home/stjeans1/.local/bin/smart_dispatch.py\", line 171, in create_job_folders\r\n    os.makedirs(path_job_commands)\r\n  File \"/opt/python64/2.7.3/lib/python2.7/os.py\", line 157, in makedirs\r\n    mkdir(name, mode)\r\nOSError: [Errno 20] Not a directory: '/home/stjeans1/commands.txt/commands'\r\n\r\nRemoving the txt doesn't work, it seems to try to create a folder up to the path, with the script name, which fails since you can't have another folder named after the script."}}