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'' –