mirror of
https://github.com/platomav/BIOSUtilities.git
synced 2025-05-23 11:37:04 -04:00
Added Dell PFS Update Extractor v6.0_a1
Adjusted dependencies
This commit is contained in:
parent
46172a218b
commit
f2be701423
12 changed files with 1242 additions and 211 deletions
common
|
@ -3,11 +3,11 @@
|
|||
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
import inspect
|
||||
import argparse
|
||||
from pathlib import Path
|
||||
|
||||
from common.script_get import get_script_dir
|
||||
|
||||
# Fix illegal/reserved Windows characters
|
||||
def safe_name(in_name):
|
||||
raw_name = repr(in_name).strip("'")
|
||||
|
@ -76,4 +76,16 @@ def process_input_files(argparse_args, sys_argv=None):
|
|||
|
||||
output_path = get_absolute_path(input('\nEnter output directory path: '))
|
||||
|
||||
return input_files, output_path
|
||||
return input_files, output_path
|
||||
|
||||
# https://stackoverflow.com/a/22881871 by jfs
|
||||
def get_script_dir(follow_symlinks=True):
|
||||
if getattr(sys, 'frozen', False):
|
||||
path = os.path.abspath(sys.executable)
|
||||
else:
|
||||
path = inspect.getabsfile(get_script_dir)
|
||||
|
||||
if follow_symlinks:
|
||||
path = os.path.realpath(path)
|
||||
|
||||
return os.path.dirname(path)
|
Loading…
Add table
Add a link
Reference in a new issue