File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22#
33# This software is Copyright (c) 2012-2013 Dhiru Kholia <dhiru at openwall.com>
4- # and Copyright (c) 2013-2025 magnum,
4+ # and Copyright (c) 2013-2026 magnum,
55# and is hereby released to the general public under the following terms:
66# Redistribution and use in source and binary forms, with or without
77# modification, are permitted.
88
9- from olefile import isOleFile , OleFileIO
109import sys
1110import os
1211
12+ try :
13+ from olefile import isOleFile , OleFileIO
14+ except ImportError :
15+ print (f"{ sys .argv [0 ]} : olefile python module is missing, please install it using" , file = sys .stderr )
16+ print ("'pip install --user olefile' (or activate your venv)" , file = sys .stderr )
17+ print ("\n or use your distro's package if available, eg. 'sudo apt-get -y install python3-olefile'\n " )
18+ sys .exit (1 )
19+
1320PY3 = sys .version_info [0 ] == 3
1421
1522if not PY3 :
You can’t perform that action at this time.
0 commit comments