permissions - Make directory below working python -


when trying os.makedirs("/home/user/newdir"), while python script located "/home/user/somefolder" gives me oserror: [errno 13] permission denied: '/home/user' how can make newdir

the problem used socket.gethostname() user name of pc, should have used getpass.getuser() instead. getpass.gethostname() gave me "chriss", while in kristians@chriss:~$


Comments

Popular posts from this blog

mod rewrite - Using "?" when rewriting the URL -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -