Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #7376

windows path of filename problem

Newsgroups comp.lang.ruby
Date 2017-12-08 08:49 -0800
Message-ID <372bc8b3-1c86-488d-b898-9b3f1ed3245c@googlegroups.com> (permalink)
Subject windows path of filename problem
From Ni Va <nivaemail@gmail.com>

Show all headers | View raw


Hi,

I'm using a script that aims to log data in file.


LOG = "vim-plugins-profile.#{$$}.log"
LOG = File.join(__dir__,LOG)                 

vim = File.join(VIM_RUNTIME_PATH, '\gvim_AMD64.exe')
system(vim, '--startuptime', LOG, '-c', 'q')

puts File.join("Attempt to read ", LOG)
lines = File.readlines(LOG)


Read the file fails because it puts this path:
/D:/Logiciels/tooldir/vim-plugins-profile/vim-plugins-profile.5752.log


windows 10 - ruby 2.4.2p198 (2017-09-14 revision 59899) [x64-mingw32]

Thank you for help
Niva

Back to comp.lang.ruby | Previous | Next | Find similar


Thread

windows path of filename problem Ni Va <nivaemail@gmail.com> - 2017-12-08 08:49 -0800

csiph-web