Tuesday, 15 February 2011

python - How to run this .py script correctly? -



python - How to run this .py script correctly? -

i downloaded programme called "a ren'py script decompiler," , cannot life of me work out how run it.

i googled bit find files had downloaded, in ".py" format, referred python, (yes, level on,) downloaded it, , after bit more googling, managed run script.

however have still no thought how thing want, when seek re-create commands readme, brings errors, , half time don't understand readme saying in first place. example: "you can either utilize -b argument specify directory in renpy lies or place renpy module in python module search path." gibberish me.

so know big ask, apparently getting run supposed pretty simple -- it's lightweight program/script/thing decompiles .rpyc scripts. know how can work?

this thing: https://github.com/yuriks/unrpyc

when run script in python says:

usage: unrpyc.py [-h] [-c] [-b basedir] [-d] [--python-screens | --ast-screens | --no-screens | --single-line-screen-kwargs] file [file ...] unrpyc.py: error: few arguments

and after don't know type work anyways.

traceback (most recent phone call last): file "<pyshell#0>", line 1, in <module> --basedir nameerror: name 'basedir' not defined

i'm maintainer of unpryc

the script should ran python 2.7. i'm glad tell in more recent version of decompiler (http://github.com/censoredusername/unrpyc) dependency on renpy has been removed, no longer have fiddle --basedir option.

regarding error:

traceback (most recent phone call last): file "<pyshell#0>", line 1, in <module> --basedir nameerror: name 'basedir' not defined

i'd guess that's caused because you're trying run command in python shell instead of normal command prompt. if want phone call script open command prompt (i think you're on windows, it'd cmd.exe) , run command:

path_to_python_executable unrpyc.py script_you_want_to_decompile.rpyc

path_to_python_executable c:\python27\python.exe

that should work.

python

No comments:

Post a Comment