Ejemplo n.º 1
0
 def __init__(self, package_dir=None, repositories=None):
     if not repositories:
         repositories = [
             "{0}://dl.platformio.org/platforms/manifest.json".format(
                 "http" if app.get_setting("disable_ssl") else "https")
         ]
     BasePkgManager.__init__(self, package_dir or
                             join(util.get_home_dir(), "platforms"),
                             repositories)
Ejemplo n.º 2
0
 def __init__(self, package_dir=None, repositories=None):
     if not repositories:
         repositories = [
             "https://dl.bintray.com/platformio/dl-platforms/manifest.json",
             "{0}://dl.platformio.org/platforms/manifest.json".format(
                 "https" if app.get_setting("strict_ssl") else "http")
         ]
     BasePkgManager.__init__(self, package_dir
                             or get_project_platforms_dir(), repositories)
Ejemplo n.º 3
0
 def __init__(self, package_dir=None, repositories=None):
     if not repositories:
         repositories = [
             "https://dl.bintray.com/platformio/dl-platforms/manifest.json",
             "{0}://dl.platformio.org/platforms/manifest.json".format(
                 "https" if app.get_setting("enable_ssl") else "http"
             ),
         ]
     BasePkgManager.__init__(self, package_dir or join(util.get_home_dir(), "platforms"), repositories)
Ejemplo n.º 4
0
 def __init__(self, package_dir=None, repositories=None):
     if not repositories:
         repositories = [
             "https://dl.bintray.com/platformio/dl-platforms/manifest.json",
             "{0}://dl.platformio.org/platforms/manifest.json".format(
                 "https" if app.get_setting("strict_ssl") else "http"),
         ]
     self.config = ProjectConfig.get_instance()
     BasePkgManager.__init__(
         self, package_dir or self.config.get_optional_dir("platforms"),
         repositories)
Ejemplo n.º 5
0
 def __init__(self, package_dir=None):
     if not package_dir:
         package_dir = join(util.get_home_dir(), "lib")
     BasePkgManager.__init__(self, package_dir)
Ejemplo n.º 6
0
 def __init__(self, package_dir=None):
     if not package_dir:
         package_dir = join(util.get_home_dir(), "lib")
     BasePkgManager.__init__(self, package_dir)