-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scripts doesn't work directly on windows #9
Comments
Sounds like a good idea - do you want to make a PR adding these batch
files?
…On Sat, Feb 25, 2017 at 21:28 Sen Jiang ***@***.***> wrote:
λ hachoir-metadata
'hachoir-metadata' is not recognized as an internal or external command,
operable program or batch file.
but it's in PATH
λ which hachoir-metadata
/c/Users/JayXon/AppData/Local/Programs/Python/Python36/Scripts/hachoir-metadata
I have to do this:
λ python C:/Users/JayXon/AppData/Local/Programs/Python/Python36/Scripts/hachoir-metadata
Usage: hachoir-metadata [options] files
Options:
-h, --help show this help message and exit
--type Only display file type (description)
--mime Only display MIME type
--level=LEVEL Quantity of information to display from 1 to 9 (9 is
the maximum)
--raw Raw output
--bench Run benchmark
--force-parser=FORCE_PARSER
List all parsers then exit
--parser-list List all parsers then exit
--profiler Run profiler
--version Display version and exit
--quality=QUALITY Information quality (0.0=fastest, 1.0=best, and
default is 0.5)
--maxlen=MAXLEN Maximum string length in characters, 0 means unlimited
(default: 300)
--verbose Verbose mode
--debug Debug mode
I think the reason is that windows doesn't support #! in script, you
might have to create a batch script for this to work.
For example a hachoir-metadata.bat file in the same directory with
hachoir-metadata with something like this works for me.
@python %~dp0hachoir-metadata
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#9>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEmuZ-4IOXDiLmGoWAtOKfrb6aJzbLQks5rgQ2IgaJpZM4MMQCv>
.
|
You can use python3 -m hachoir.metadata.
I don't know if you can type python3 or python3.6 on Windows. Maybe you can
use py -3 -m hachoir.metadata.
|
python3 or python3.6 won't work, but since I only have python 3.6 installed, these 3 all works: Anyway, I did a little bit of research and it seems you should be using |
Using entry points was my long term plan. That's why I moved script content
into hachoir/ directory and simplified scripts to 3 lines.
|
Fix vstinner#9 Also added missing xrc file for hachoir-wx
Fixes scripts on Windows vstinner#9 Also added missing xrc file for hachoir-wx
but it's in PATH
I have to do this:
I think the reason is that windows doesn't support
#!
in script, you might have to create a batch script for this to work.For example a
hachoir-metadata.bat
file in the same directory with hachoir-metadata with something like this works for me.Or a
hachoir-metadata.bat
file like this which doesn't need hachoir-metadata script.The text was updated successfully, but these errors were encountered: