File tree Expand file tree Collapse file tree
qgis_deployment_toolbelt/jobs Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212from pathlib import Path
1313from posixpath import expanduser , expandvars
1414from shutil import copy2
15- from sys import platform as opersys
1615
1716# package
1817from qgis_deployment_toolbelt .constants import OSConfiguration
1918from qgis_deployment_toolbelt .jobs .generic_job import GenericJob
2019from qgis_deployment_toolbelt .profiles .qgis_ini_handler import QgisIniHelper
2120from qgis_deployment_toolbelt .utils .file_downloader import download_remote_file_to_local
21+ from qgis_deployment_toolbelt .utils .os_utils_router import set_environment_variable
2222from qgis_deployment_toolbelt .utils .str2bool import str2bool
2323from qgis_deployment_toolbelt .utils .url_helpers import (
2424 check_str_is_url ,
2525 filename_from_url ,
2626)
2727
2828
29- # conditional imports
30- if opersys == "win32" :
31- from qgis_deployment_toolbelt .utils .win32utils import set_environment_variable
32- elif opersys == "linux" :
33- from qgis_deployment_toolbelt .utils .linux_utils import set_environment_variable
34- else :
35- set_environment_variable = None
36-
3729# #############################################################################
3830# ########## Globals ###############
3931# ##################################
4032
41-
4233# logs
4334logger = logging .getLogger (__name__ )
4435
You can’t perform that action at this time.
0 commit comments