![]() ![]() I want to say that the pdftest.pdf is in the python program folder so i don't need a direction if i'm right. This is a double question, one about VS proper use and the other to ask if my code works. Parser.add_option('-F', dest='fileName', type='string', help='specify PDF file Name') Parser = optparse.OptionParser('usage %prog' + '-F ') Print(' PDF Metadata For: ' + str(fileName)) Code For this example we create three files: hello.pyx contains the Cython code. A common approach is to create an extension module which is then imported in a Python program. Visual Studio provides first-class language support for Python. PdfFile = pdfFileReader(file(fileName, 'rb')) Hello World A Cython pyx file needs to be translated to C code (cythonized) and compiled before it can be used from Python. The program i'm working on extracts the metadata from a pdf and it's the code below. The extension makes VS Code an excellent Python editor, and works on any operating. The question is that i been using VS, because i find it easy, but idk how/where to write commands like "python pythonprogram.py" and make use of the optparse module as i do on a Linux console. Working with Python in Visual Studio Code, using the Microsoft Python extension, is simple, fun, and productive. I'm teaching myself Python thanks to a book and nice people i find every day in SO.
0 Comments
Leave a Reply. |