forked from aboutcode-org/scancode-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
executable file
·26 lines (21 loc) · 846 Bytes
/
__init__.py
File metadata and controls
executable file
·26 lines (21 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#
# Copyright (c) nexB Inc. and others. All rights reserved.
# ScanCode is a trademark of nexB Inc.
# SPDX-License-Identifier: Apache-2.0
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
# See https://github.com/aboutcode-org/scancode-toolkit for support or download.
# See https://aboutcode.org for more information about nexB OSS projects.
#
from os.path import abspath
from os.path import dirname
from os.path import join
from plugincode.location_provider import LocationProviderPlugin
class Pdf2textPaths(LocationProviderPlugin):
def get_locations(self):
curr_dir = dirname(abspath(__file__))
bin_dir = join(curr_dir, 'bin')
locations = {
'textcode.pdf2text.bindir': bin_dir,
'textcode.pdf2text.exe': join(bin_dir, 'pdf2text'),
}
return locations