Skip to content

Commit 1052cab

Browse files
MarkusPiotrowskipeterjc
authored andcommitted
Remove subprocess call to python interpreter
1 parent b991a3b commit 1052cab

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Scripts/xbbtools/xbb_blastbg.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
import os
1616
import tempfile
1717
import threading
18-
import subprocess
1918

20-
from tkinter import messagebox
19+
from tkinter import Tk, messagebox
2120

2221
from Bio.Blast.Applications import (
2322
NcbiblastnCommandline,
@@ -140,6 +139,9 @@ def run(self):
140139

141140

142141
if __name__ == "__main__":
143-
subprocess.call(
144-
["python", "xbb_blast.py", "ATGACAAAGCTAATTATTCACTTGGTTTCAGACTCTTCTGTGCAAACTGC"]
145-
)
142+
from xbb_blast import BlastIt
143+
144+
win = Tk()
145+
win.title("Dummy windows for BLAST test")
146+
test = BlastIt("ATGACAAAGCTAATTATTCACTTGGTTTCAGACTCTTCTGTGCAAACTGC")
147+
win.mainloop()

0 commit comments

Comments
 (0)