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

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -