Entering edit mode
7.8 years ago
ahmedakhokhar
▴
150
Problem: I want a write a directory's path as user's input in an add.argument of ArgumentParser().
So far: I have written this
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('path', option = os.chdir(input("paste here path to biog.txt file:")), help= 'paste path to biog.txt file')
Any idea's, what would be the ideal solution of this problem ?