-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.py
More file actions
34 lines (25 loc) · 971 Bytes
/
build.py
File metadata and controls
34 lines (25 loc) · 971 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
27
28
29
30
31
32
33
34
'''
Created on May 7, 2014
@author: kwalker
'''
import os, shutil, time
startTime = time.time()
currentTime = time.time()
srcDir = os.path.join(os.path.dirname(__file__), "ToolModules")
dstDir = os.path.join(os.path.dirname(__file__), r"build\Zip4Tool")
if os.path.exists(dstDir):
shutil.rmtree(dstDir)
os.mkdir(dstDir)
toolBox = "AGRC Geocode Zip Plus 4.tbx"
shutil.copy(os.path.join(os.path.dirname(__file__), toolBox), os.path.join(dstDir, toolBox))
installer = "Install.py"
shutil.copy(os.path.join(os.path.dirname(__file__), installer), os.path.join(dstDir, installer))
scriptFiles = ["configs.py", "fields.py", "ZipPlusFourTool.py", "GeocodeAddressTable.py"]
for f in scriptFiles:
shutil.copy(os.path.join(srcDir, f), os.path.join(dstDir, f))
print "Build Complete"
print
print "-- Double check that testing was turned off --"
print "-- Remember to import script into tool --"
while currentTime - startTime < 1.5:
currentTime = time.time()