Commit Graph

122 Commits

Author SHA1 Message Date
Jérôme Carretero b32ab8c7c5 utils: fix "typo" in check_exe()
Yeah, I was returning the directory name in some cases...
2013-08-14 17:57:26 -04:00
Jérôme Carretero f3f9e9f99d provide a clearer error message in case Popen'ed executable is not executable
subprocess.Popen() will give a proper error message if the first
argument is an absolute path, but if it's a bare command name, it will
complain with a "Permission Denied" error.

This change provides a clear error every time.

If speed is proven to have an impact on this code, we could add
the "Logs.verbose > 0" precondition or add memoization.
2013-08-12 20:00:47 -04:00
Thomas Nagy 072edeb396 possible fix for python 3 IO issues on windows 2012-12-05 01:23:52 +01:00
Thomas Nagy 220c438320 Issue 1193 2012-08-29 18:23:29 +02:00
Jerome Carretero 28b5d25a55 readf_win32: fix small typo 2012-06-14 22:51:54 -04:00
Thomas Nagy f19e7cb3c8 typo 2012-06-07 17:32:01 +02:00
Thomas Nagy 1d0f1c9b21 Python 3 makes the 'encoding' parameter mandatory on all I/O operations 2012-06-05 04:31:31 +02:00
Thomas Nagy 87255223ad cleanup 2012-05-22 18:43:28 +02:00
Thomas Nagy fb1addeaf2 cleanup 2012-05-21 20:23:43 +02:00
Thomas Nagy 0927ddde28 Provide safer readf/writef/h_file functions on win32 2012-05-19 10:29:44 +02:00
Thomas Nagy 5d6c12be1f cleanup on the write functions 2012-05-17 13:49:09 +02:00
Thomas Nagy 661127acf3 Issue 1135 2012-04-13 23:11:17 +02:00
Thomas Nagy 2ed4e80f83 Issue 1146 2012-04-13 18:49:28 +02:00
Thomas Nagy ef0c80e3b6 Added Utils.writef (counterpart of Utils.readf) 2012-02-12 15:27:38 +01:00
Thomas Nagy adf2225f76 remove as many bare 'except:' statements as possible 2012-02-11 13:43:47 +01:00
Thomas Nagy 8144fc74f9 we do not need a custom subprocess module anymore 2012-02-08 21:27:29 +01:00
Jerome Carretero a30aa80dcc Revert "cleanup"
This reverts commit 3fa197298b.

Trying to import extras/subprocess first fails on Python 3.{1,2}.
2012-02-08 00:43:12 -05:00
Thomas Nagy 3fa197298b cleanup 2012-02-06 02:21:37 +01:00
Thomas Nagy 250a8c699c The previous change breaks the powerpc builds
The compiler detection often relies on functions named gcc_xxx_platform,
if powerpc is left, then all the functions must be added in all those
modules.
2011-12-03 21:44:38 +01:00
Johan Boule 469742d18a powerpc doesn't mean darwin 2011-12-03 20:35:55 +01:00
Thomas Nagy e6f8d1e9ee evil osx stuff 2011-11-19 13:21:02 +01:00
Thomas Nagy 44a967e326 Initial commit 2011-09-10 11:13:51 +02:00