« get me outta code hell

more os.homedir() - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
path: root/guess.js
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2020-02-04 22:57:28 -0400
committerFlorrie <towerofnix@gmail.com>2020-02-04 22:57:28 -0400
commit8cbae1fe17bbf51060734861540a398631635ad7 (patch)
treeece8c93d64b981c7e7b9ae67d59cd88b79d274e4 /guess.js
parent54c0ae40e4cb05f055bd3f7e195bc9308aee2e73 (diff)
more os.homedir()
Diffstat (limited to 'guess.js')
-rw-r--r--guess.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/guess.js b/guess.js
index 56c614a..0748ce8 100644
--- a/guess.js
+++ b/guess.js
@@ -1,6 +1,7 @@
 'use strict'
 
 const Backend = require('./backend')
+const os = require('os')
 const processSmartPlaylist = require('./smart-playlist')
 
 const {
@@ -46,7 +47,7 @@ async function game() {
     }
   })
 
-  const sourcePath = process.argv[2] || process.env.HOME + '/Music'
+  const sourcePath = process.argv[2] || os.homedir() + '/Music'
   let grouplike = {source: ['crawl-local', sourcePath]}
   grouplike = await processSmartPlaylist(grouplike)