-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e483cb
commit fa935dd
Showing
3 changed files
with
86 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# ------------------------------------------------------------------------------------------------- | ||
# Copyright (c) 2024, DHS. | ||
# | ||
# This file is part of lusSTR (http://github.com/bioforensics/lusSTR) and is licensed under | ||
# the BSD license: see LICENSE.txt. | ||
# | ||
# This software was prepared for the Department of Homeland Security (DHS) by the Battelle National | ||
# Biodefense Institute, LLC (BNBI) as part of contract HSHQDC-15-C-00064 to manage and operate the | ||
# National Biodefense Analysis and Countermeasures Center (NBACC), a Federally Funded Research and | ||
# Development Center. | ||
# ------------------------------------------------------------------------------------------------- | ||
|
||
import tkinter as tk | ||
from tkinter import filedialog | ||
import sys | ||
import json | ||
|
||
|
||
def select_file(): | ||
root = tk.Tk() | ||
root.withdraw() # Hide the main window | ||
file_path = filedialog.askopenfilename() # Open the dialog to select a folder | ||
if file_path: | ||
print(json.dumps({"file_path": file_path})) | ||
root.destroy() | ||
|
||
|
||
if __name__ == "__main__": | ||
select_file() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# ------------------------------------------------------------------------------------------------- | ||
# Copyright (c) 2024, DHS. | ||
# | ||
# This file is part of lusSTR (http://github.com/bioforensics/lusSTR) and is licensed under | ||
# the BSD license: see LICENSE.txt. | ||
# | ||
# This software was prepared for the Department of Homeland Security (DHS) by the Battelle National | ||
# Biodefense Institute, LLC (BNBI) as part of contract HSHQDC-15-C-00064 to manage and operate the | ||
# National Biodefense Analysis and Countermeasures Center (NBACC), a Federally Funded Research and | ||
# Development Center. | ||
# ------------------------------------------------------------------------------------------------- | ||
|
||
import tkinter as tk | ||
from tkinter import filedialog | ||
import sys | ||
import json | ||
|
||
|
||
def select_folder(): | ||
root = tk.Tk() | ||
root.withdraw() # Hide the main window | ||
folder_path = filedialog.askdirectory() # Open the dialog to select a folder | ||
if folder_path: | ||
print(json.dumps({"folder_path": folder_path})) | ||
root.destroy() | ||
|
||
|
||
if __name__ == "__main__": | ||
select_folder() |