forked from buixor/nxapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
38 lines (30 loc) · 1.04 KB
/
setup.py
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
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env python
from distutils.core import setup
import os
import glob
import pprint
f = {}
data_files = [('/usr/local/nxapi/', ['nx_datas/country2coords.txt']),
('/usr/local/etc/', ['nxapi.json'])]
#modules = []
for dirname, dirnames, filenames in os.walk('tpl/'):
for filename in filenames:
if filename.endswith(".tpl"):
print dirname+"#"+filename
if "/usr/local/nxapi/"+dirname not in f.keys():
f["/usr/local/nxapi/"+dirname] = []
f["/usr/local/nxapi/"+dirname].append(os.path.join(dirname, filename))
for z in f.keys():
data_files.append( (z, f[z]))
print "DATA FILES:"
pprint.pprint(data_files)
setup(name='nxtool',
version='1.0',
description='Naxsi log parser, whitelist & report generator',
author='Naxsi Dev Team',
author_email='[email protected]',
url='http://github.com/nbs-system/naxsi',
scripts=['nxtool.py'],
packages=['nxapi'],
data_files=data_files
)