Skip to content

Commit

Permalink
fix: use __dirname in pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
LynMoe committed Feb 26, 2021
1 parent e52e937 commit ac9567f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ if (!fs.existsSync(path.resolve(__root, '.azusa/'))) {

// Login to Cloudmusic
logger.info('Logging in to Cloudmusic')
await api.login(config('phone'), config('password'), config('saveCookie', true) ? path.resolve(__dirname, 'account.json') : '')
await api.login(config('phone'), config('password'), config('saveCookie', true) ? path.resolve('account.json') : '')

// Generate infomation for downloading
const playlistList = []
Expand Down

0 comments on commit ac9567f

Please sign in to comment.