Answer the question
In order to leave comments, you need to log in
How to get the full path to a script using argparse?
Good afternoon.
You need to use argparse to get the full path to the script.
Off. The documentation suggests using .prog , but it only returns the name, unlike sys.argv[0].
Tell me how to get the full path using argparse?
Windows, python 3.5
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question