0
我完全是Python的新手,並且沒有用這種語言編寫腳本。但是我需要下面一行的幫助(我知道這行是爲了在解釋器中運行腳本)。我需要運行這個程序,我可以在其中反編譯.gwc文件。我現在不想學Python,我只是想在Pycharm中運行這個程序。給Pycharm提供參數
這裏是行:
$ python gwcd.py [OPTIONS] <gwc file>
的選項包括:
-h, --help show this help message and exit
--output OUTPUT Output directory where gwcd will store extracted data
--lua Extract compiled lua file
--completion Show the completion code
--media Extract media files
--verbose, -v Show all data related to the cartridge
--all Do everything
這個問題對我來說也是,那裏的GWC文件必須存放。
提前致謝!
P.S:GitHub的鏈接,該項目是:https://github.com/driquet/gwcd.git
好的,明白了,我需要去運行配置,所以我添加了param到腳本,並在工作目錄中放置了一個.gwc文件,但是這個錯誤出現了'gwcd.py:error:following參數是必需的:input' –
'回溯(最近通話最後一個): 文件 「C:/Users/Enno/PycharmProjects/gwcd/gwcd.py」,線路148,在 DOBJ = GWCDecompiler(args.input) 文件「C:/Users/Enno/PycharmProjects/gwcd/gwcd.py」,第33行,在__init__中 self.reader = GWCReader(文件名) 文件「C:\ Users \ Enno \ PycharmProjects \ gwcd \ reader.py」 ,第30行,在__init__中 self.file = open(filename,'rb')' –
'FileNotFoundError:[Errno 2]沒有這樣的文件或d irectory:'[--outpout]' 在> Traceback(最近調用最後一個): 文件「C:\ Users \ Enno \ PycharmProjects \ gwcd \ reader.py「,第34行,在__del__ self.file.close() AttributeError:'GWCReader'對象沒有屬性'file'' –