Skip to content

Commit

Permalink
fix root directory to current dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Srinivas11789 committed Jan 17, 2019
1 parent 5b528a7 commit d858aec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Module/userInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import threading
import Queue
from PIL import Image,ImageTk
import os
import os, sys

class pcapXrayGui:
def __init__(self, base):
Expand Down Expand Up @@ -75,7 +75,7 @@ def __init__(self, base):

def browse_directory(self):
# Reference: http://effbot.org/tkinterbook/tkinter-dialog-windows.htm
self.pcap_file.set(tkFileDialog.askopenfilename(initialdir = "/",title = "Select Packet Capture File!",filetypes = (("pcap files","*.pcap"),("pcapng files","*.pcapng"))))
self.pcap_file.set(tkFileDialog.askopenfilename(initialdir = sys.path[0],title = "Select Packet Capture File!",filetypes = (("pcap files","*.pcap"),("pcapng files","*.pcapng"))))
self.filename = self.pcap_file.get().replace(".pcap","")
if "/" in self.filename:
self.filename = self.filename.split("/")[-1]
Expand Down

0 comments on commit d858aec

Please sign in to comment.