os.environ['HOME']+'/.xsend' what it means
It means a string representing the file system path to the file or directory
.xsend in your home directory. A better way to obtain it is
This code is better because it is cross-platform.
while typing this command getting path like "/home/weber/.xsend"
but my file located at /home/weber/jbwrk/xsend.py
Because your home directory is
/home/weber. If you want the other path, use
os.path.join(os.path.expanduser('~'), 'jbwrk', 'xsend.py')
However, I think
/home/weber/.xsend was probably meant. It may be a configuration file or directory. Try
ls -a ~
to see if there is a .xsend in your home directory.