Skip to main content

Package for findfqpath

Project description

findfqpath Package

Returns a fully qualified file name

Finds the current the most current version of a file. Once it's found, it will be stored in a shelf file. Future calls pull from the shelf file first, then search if the file is older than requested or missing Handy for executables that move as they are updated (such as opera.exe). At least Python uses a fully qualified name, so by using this function, the code won't need to change as the exeutable is installed in new folders

This will run slow the FIRST time a new file is requested as it is searching the entire drive. Subsequent usage for the same file will be sub-second.

Usage:
from findfqpath import find_fq_path
fq_path = find_fq_path("opera.exe",1)

Optional:
Scope="Local" - Will write shelf data to the folder where the script is located (So the FIRST execution of a new script will be slow)
Scope="Shared" - Will write shelf data to the common documents folder and be used across python scripts

Sample Application:
options = webdriver.ChromeOptions()
options.binary_location = find_fq_path(find_file='opera.exe', num_days_valid=1)

Project details


Release history Release notifications

This version
History Node

1.0.5

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
findfqpath-1.0.5-py3-none-any.whl (4.1 kB) Copy SHA256 hash SHA256 Wheel py3
findfqpath-1.0.5.tar.gz (3.6 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page