We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6d358c commit f649f7aCopy full SHA for f649f7a
lib/misc/paths.js
@@ -24,9 +24,10 @@ export function expandHome (p) {
24
25
export function fullPath (p) {
26
return new Promise((resolve, reject) => {
27
- if (fs.existsSync(p)) return resolve(p)
+ if (fs.existsSync(p)) return resolve(fs.realpathSync(p))
28
const current_dir = process.cwd()
29
const exepath = path.dirname(process.execPath)
30
+
31
try {
32
process.chdir(exepath)
33
const realpath = fs.realpathSync(p)
0 commit comments