diff options
author | koray kavukcuoglu <koray@kavukcuoglu.org> | 2013-06-16 20:42:16 +0400 |
---|---|---|
committer | koray kavukcuoglu <koray@kavukcuoglu.org> | 2013-06-16 20:42:16 +0400 |
commit | bc3b90760364cc491879af6a6ee782c491dd1be9 (patch) | |
tree | 74162db11fc766ef65047ada9813d66df1413e0c | |
parent | c62755c6e88dea725316bd01459e8edb04954b53 (diff) |
make sure to obey .gnuplot file if it exists
-rw-r--r-- | gnuplot.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gnuplot.lua b/gnuplot.lua index c269f8e..73c603e 100644 --- a/gnuplot.lua +++ b/gnuplot.lua @@ -135,8 +135,10 @@ local function getfigure(n) _gptable[n].pipe = torch.PipeFile(getexec() .. ' -persist > /dev/null 2>&1 ','w') end _gptable.current = n - _gptable[n].pipe:writeString(torchstyle .. '\n\n\n') - _gptable[n].pipe:synchronize() + if not paths.filep(paths.concat(os.getenv('HOME'),'.gnuplot')) then + _gptable[n].pipe:writeString(torchstyle .. '\n\n\n') + _gptable[n].pipe:synchronize() + end return _gptable[n] end |