forked from platformio/platformio-core
Improved support for projects located on a network share // Resolve #3417 , Resolve #3926 , Resolve #4102
This commit is contained in:
1 parent
001f075a49
commit
4687665ff3
18 files changed
+67
-46
No files matched your search
@@ -82,7 +82,7 @@ class ProjectGenerator(object):
|
||||
"project_dir": self.project_dir,
|
||||
"original_env_name": self.original_env_name,
|
||||
"env_name": self.env_name,
|
||||
"user_home_dir": os.path.realpath(fs.expanduser("~")),
|
||||
"user_home_dir": os.path.abspath(fs.expanduser("~")),
|
||||
"platformio_path": sys.argv[0]
|
||||
if os.path.isfile(sys.argv[0])
|
||||
else where_is_program("platformio"),
|
||||
@@ -125,7 +125,9 @@ class ProjectGenerator(object):
|
||||
with fs.cd(self.project_dir):
|
||||
for root, _, files in os.walk(self.config.get("platformio", "src_dir")):
|
||||
for f in files:
|
||||
result.append(os.path.relpath(os.path.join(root, f)))
|
||||
result.append(
|
||||
os.path.relpath(os.path.join(os.path.realpath(root), f))
|
||||
)
|
||||
return result
|
||||
|
||||
def get_tpls(self):
|
||||
|
||||
@@ -24,7 +24,7 @@ from platformio.project.config import ProjectConfig
|
||||
|
||||
|
||||
def get_project_dir():
|
||||
return os.getcwd()
|
||||
return fs.normalize_path(os.getcwd())
|
||||
|
||||
|
||||
def is_platformio_project(project_dir=None):
|
||||
|
||||
@@ -114,7 +114,7 @@ def validate_dir(path):
|
||||
path = fs.expanduser(path)
|
||||
if "$" in path:
|
||||
path = expand_dir_templates(path)
|
||||
return os.path.realpath(path)
|
||||
return fs.normalize_path(path)
|
||||
|
||||
|
||||
def validate_core_dir(path):
|
||||
|
||||
Reference in new issue
Block a user