module installcustom.install_custom
¶
Short summary¶
module pymyinstall.installcustom.install_custom
Various functions to install some application such as pandoc.
Classes¶
class |
truncated documentation |
---|---|
Cannot download. |
Functions¶
function |
truncated documentation |
---|---|
Downloads a file from a url, the function does not download the file again if outfile already exists. |
|
Downloads a file from a url using redirection, the function does not download the file again if outfile already … |
|
Looks for a file in current directory and in every path in |
Documentation¶
Various functions to install some application such as pandoc.
- exception pymyinstall.installcustom.install_custom.DownloadException¶
Bases:
RuntimeError
Cannot download.
- pymyinstall.installcustom.install_custom.download_file(url, outfile, fLOG=None)¶
Downloads a file from a url, the function does not download the file again if outfile already exists.
- Parameters:
url – url
outfile – outfile
fLOG – logging function
- Returns:
outfile
- pymyinstall.installcustom.install_custom.download_from_sourceforge(url, outfile, fLOG=<built-in function print>, temp_folder='.')¶
Downloads a file from a url using redirection, the function does not download the file again if outfile already exists.
- Parameters:
url – url
outfile – outfile
fLOG – logging function
temp_folder – only used if installation of module requests is needed
- Returns:
outfile
The function will install module requests if not present.
- pymyinstall.installcustom.install_custom.where_in_path(name)¶
Looks for a file in current directory and in every path in
PATH
.- Parameters:
name – name of the file to look for
- Returns:
None if not found, the absolute filename otherwise