Added function process_files

This commit is contained in:
2018-02-09 22:41:33 +01:00
parent a11fb3436f
commit 88e1db70f2
5 changed files with 23 additions and 13 deletions
+3 -2
View File
@@ -15,7 +15,7 @@ import os
from os.path import expanduser
import platform
import sys
from h2inc import sourcedir_filecnt, sourcedir_foldercnt
from h2inc import sourcedir_filecnt, sourcedir_foldercnt, process_files
class h2incGUI:
def __init__(self, master):
@@ -137,7 +137,7 @@ class h2incGUI:
doinc = addinc.get()
dest = destdir.get()
if doinc == 'yes':
dest = dest+'/include/'
dest = dest+'/include'
print(os.path.exists(os.path.dirname(dest)))
if not os.path.exists(os.path.dirname(dest)):
try:
@@ -147,6 +147,7 @@ class h2incGUI:
raise
destdir.set(dest)
print ('Destination directory: ', destdir.get())
process_files(sourcedir, destdir)
root = Tk()