figenc

[RADIOACTIVE] rsa and symmetric key encryption scripts and executables
git clone git://git.figbert.com/figenc.git
Log | Files | Refs | README

commit 5d9544827000b2d85dc10cd959d129f8210111ec
parent 2813f010be5fcc23b34f3e8432707eeac290d9ef
Author: therealFIGBERT <figbertwelner@gmail.com>
Date:   Thu,  8 Aug 2019 16:55:25 -0700

2.0.1

Diffstat:
MScripts/check.py | 58+++++++++++++++++++++++++++++-----------------------------
MScripts/version.txt | 4++--
2 files changed, 31 insertions(+), 31 deletions(-)

diff --git a/Scripts/check.py b/Scripts/check.py @@ -8,36 +8,36 @@ def password_check(first_pass, second_pass): return False -def find_path(filename): - """Return the filepath from the filename when running from a - pyinstaller application. +# def find_path(filename): +# """Return the filepath from the filename when running from a +# pyinstaller application. - Keyword arguments: - filename -- the filename to convert to a filepath - """ - if hasattr(sys, '_MEIPASS'): - # PyInstaller >= 1.6 - os.chdir(sys._MEIPASS) - filename = os.path.join(sys._MEIPASS, filename) - elif '_MEIPASS2' in os.environ: - # PyInstaller < 1.6 (tested on 1.5 only) - os.chdir(os.environ['_MEIPASS2']) - filename = os.path.join(os.environ['_MEIPASS2'], filename) - else: - os.chdir(os.path.dirname(sys.argv[0])) - filename = os.path.join(os.path.dirname(sys.argv[0]), filename) - return filename - - -# def find_path(file): -# """Return the correct filename if you are running it as a script""" -# return os.path.dirname( -# os.path.abspath( -# inspect.getfile( -# inspect.currentframe() -# ) -# ) -# ) + "/{}".format(file) +# Keyword arguments: +# filename -- the filename to convert to a filepath +# """ +# if hasattr(sys, '_MEIPASS'): +# # PyInstaller >= 1.6 +# os.chdir(sys._MEIPASS) +# filename = os.path.join(sys._MEIPASS, filename) +# elif '_MEIPASS2' in os.environ: +# # PyInstaller < 1.6 (tested on 1.5 only) +# os.chdir(os.environ['_MEIPASS2']) +# filename = os.path.join(os.environ['_MEIPASS2'], filename) +# else: +# os.chdir(os.path.dirname(sys.argv[0])) +# filename = os.path.join(os.path.dirname(sys.argv[0]), filename) +# return filename + + +def find_path(file): + """Return the correct filename if you are running it as a script""" + return os.path.dirname( + os.path.abspath( + inspect.getfile( + inspect.currentframe() + ) + ) + ) + "/{}".format(file) def key_enc(files, pass1, pass2, key_dir): diff --git a/Scripts/version.txt b/Scripts/version.txt @@ -1 +1 @@ -2.0.0 -\ No newline at end of file +2.0.1 +\ No newline at end of file