Skip to content

Commit

Permalink
fix dev entry path locating. [skip CI]
Browse files Browse the repository at this point in the history
  • Loading branch information
pigpigyyy committed Apr 30, 2024
1 parent f69637d commit 219f286
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Assets/Script/Dev/Entry.lua
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ getProjectEntries = function(path) -- 171
local name, ePath = _des_0[1], _des_0[2] -- 190
local entry = { -- 191
name, -- 191
Path(dir, Path:getPath(file), ePath) -- 191
Path(path, dir, Path:getPath(file), ePath) -- 191
} -- 191
examples[#examples + 1] = entry -- 192
end -- 192
Expand All @@ -336,7 +336,7 @@ getProjectEntries = function(path) -- 171
local name, tPath = _des_0[1], _des_0[2] -- 195
local entry = { -- 196
name, -- 196
Path(dir, Path:getPath(file), tPath) -- 196
Path(path, dir, Path:getPath(file), tPath) -- 196
} -- 196
tests[#tests + 1] = entry -- 197
end -- 197
Expand Down
4 changes: 2 additions & 2 deletions Assets/Script/Dev/Entry.yue
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,12 @@ getProjectEntries = (path) ->
examplePath = Path path, dir, Path\getPath(file), "Example"
if Content\exist examplePath
for [name, ePath] in *getFileEntries examplePath
entry = [name, Path(dir, Path\getPath(file), ePath)]
entry = [name, Path path, dir, Path\getPath(file), ePath]
examples[] = entry
testPath = Path path, dir, Path\getPath(file), "Test"
if Content\exist testPath
for [name, tPath] in *getFileEntries testPath
entry = [name, Path(dir, Path\getPath(file), tPath)]
entry = [name, Path path, dir, Path\getPath(file), tPath]
tests[] = entry
entry = [entryName, fileName, examples, tests]
bannerFile = Path path, Path\getPath(fileName), "Image", "banner.png"
Expand Down
2 changes: 1 addition & 1 deletion Assets/Script/Lib/WebServer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ getProjectDirFromFile = function(file) -- 17
for _index_0 = 1, #_list_0 do -- 24
local f = _list_0[_index_0] -- 24
if Path:getName(f):lower() == "init" then -- 25
return Path(current, Path:getPath(f)) -- 26
return Path(writablePath, current, Path:getPath(f)) -- 26
end -- 25
end -- 26
until false -- 27
Expand Down
2 changes: 1 addition & 1 deletion Assets/Script/Lib/WebServer.yue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ getProjectDirFromFile = (file) ->
break if current == ""
for f in *Content\getFiles Path writablePath, current
if Path\getName(f)\lower! == "init"
return Path current, Path\getPath f
return Path writablePath, current, Path\getPath f
until false
nil

Expand Down

0 comments on commit 219f286

Please sign in to comment.