-
Notifications
You must be signed in to change notification settings - Fork 1
/
debug.py
65 lines (44 loc) · 1.44 KB
/
debug.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# -*- coding: utf-8 -*-
"""
Created on Thu Jan 4 13:06:32 2018
"""
import gsyIO
str_dir = 'C:/Users'
str_pattern = 'gsyBio.rst'
list_temp = gsyIO.search_file(str_dir_path=str_dir, str_pattern=str_pattern, bool_recursive=True)
print(list_temp)
# =============================================================================
# import subprocess
#
# subprocess.run(r'"C:\Program Files\Inkscape\inkscape" C:\Users\\Documents\_Temp\SVG_to_EMF\test_time.svg --export-emf=C:\Users\\Documents\_Temp\SVG_to_EMF\test_time.emf', shell=True)
#
# subprocess.run(r'inkscape C:\Users\\Documents\_Temp\SVG_to_EMF\test_polar.svg --export-emf=C:\Users\\Documents\_Temp\SVG_to_EMF\test_polar.emf', shell=True)
# =============================================================================
#import glob
#
#str_pattern = "C:/Users/Documents/_Temp/**/*.svg"
#
#list_temp = glob.glob(str_pattern, recursive=True)
#
#for item in list_temp:
#
# print(item)
# import os
# os.startfile('c:/')
# import gsyIO
# gsyIO.open_folder('c:/')
# import glob
# str_pattern = "C:/Users/**/*.py"
# list_temp = glob.glob(str_pattern, recursive=True)
# print(list_temp)
#for item in glob.iglob(str_pattern, recursive=True):
#
# print(item)
#from tkinter import *
#import tkinter, tkconstants, tkFileDialog
#root = Tk()
#root.directory = tkFileDialog.askdirectory()
#print (root.directory)
# import gsyIO
# str_folder = gsyIO.get_dir()
# print('The selected folder is : ' + str_folder)