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
Post a Comment