Added function process_files
This commit is contained in:
+3
-2
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user