* Optimized project integration templates to address the issue of long paths on Windows // Resolve #4652

This commit is contained in:
Ivan Kravets
2023-06-08 15:03:42 +03:00
parent 2b36c7086a
commit 355f5afab9
40 changed files with 7 additions and 6 deletions

View File

@@ -19,6 +19,7 @@ PlatformIO Core 6
~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
* Enhanced the parsing of the |PIOCONF| to provide comprehensive diagnostic information * Enhanced the parsing of the |PIOCONF| to provide comprehensive diagnostic information
* Optimized project integration templates to address the issue of long paths on Windows (`issue #4652 <https://github.com/platformio/platformio-core/issues/4652>`_)
6.1.7 (2023-05-08) 6.1.7 (2023-05-08)
~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~

View File

@@ -52,7 +52,7 @@ class ProjectGenerator:
@staticmethod @staticmethod
def get_ide_tpls_dir(): def get_ide_tpls_dir():
return os.path.join(fs.get_assets_dir(), "templates", "ide-projects") return os.path.join(os.path.dirname(__file__), "tpls")
@classmethod @classmethod
def get_supported_ides(cls): def get_supported_ides(cls):

View File

@@ -65,11 +65,11 @@ setup(
package_data={ package_data={
"platformio": [ "platformio": [
"assets/system/99-platformio-udev.rules", "assets/system/99-platformio-udev.rules",
"assets/templates/ide-projects/*/*.tpl", "project/integration/tpls/*/*.tpl",
"assets/templates/ide-projects/*/.*.tpl", # include hidden files "project/integration/tpls/*/.*.tpl", # include hidden files
"assets/templates/ide-projects/*/.*/*.tpl", # include hidden folders "project/integration/tpls/*/.*/*.tpl", # include hidden folders
"assets/templates/ide-projects/*/*/*.tpl", # NetBeans "project/integration/tpls/*/*/*.tpl", # NetBeans
"assets/templates/ide-projects/*/*/*/*.tpl", # NetBeans "project/integration/tpls/*/*/*/*.tpl", # NetBeans
] ]
}, },
entry_points={ entry_points={