2
Contributors
3
Replies
32
Views
3 Years
Discussion Span
Last Post by Gribouillis
0

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

os.path.join(os.path.expanduser('~'), '.xsend')

This code is better because it is cross-platform.

Edited by Gribouillis

0

while typing this command getting path like "/home/weber/.xsend"
but my file located at /home/weber/jbwrk/xsend.py
why ??

1

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.

Edited by Gribouillis

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.