Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Some minor improvements to the code #2

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions sbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
import time
import hashlib
import requests
sameera-madushan marked this conversation as resolved.
Show resolved Hide resolved
import sys
import ctypes
import clr
from System.Windows.Forms import OpenFileDialog


banner = r'''
___ ___ ___ __ __
Expand All @@ -21,17 +26,10 @@

# got this from https://stackoverflow.com/a/58861718/13276219
def file_path():
import sys
import ctypes

co_initialize = ctypes.windll.ole32.CoInitialize
co_initialize(None)

import clr

clr.AddReference('System.Windows.Forms')

from System.Windows.Forms import OpenFileDialog

file_dialog = OpenFileDialog()
ret = file_dialog.ShowDialog()
Expand Down