The title says it all, how can I change the working directory inside the Torch REPL? I tried to use os.execute ('cd some_dir') calls, but this does not work, as shown here.
th> pwd()
--prints: / home / user / Code
th> os.execute('cd ..')
--prints: true exit 0
th> pwd()
- prints: / home / user / Code
where pwd () is a convenience function that calls os.execute ('pwd').
source
share