16 Commits

Author SHA1 Message Date
Thomas-Karl Pietrowski
a8e13f13ba Add missing import of 'os' 2016-04-19 18:56:58 +02:00
Youness Alaoui
df8207747a Force PYTHONPATH to be in the top of the sys.path list.
This fixes https://github.com/Ultimaker/Cura/issues/704
2016-04-18 14:42:29 -04:00
Thomas-Karl Pietrowski
a00f0ece18 Adding #@UnusedImport to ignore this import 2016-03-14 15:34:42 +01:00
Thomas-Karl Pietrowski
27423205b0 Rename type into hook_type
"type" itself if a built-in function. Using this name could be unsave.
2016-03-14 15:32:51 +01:00
Thomas-Karl Pietrowski
6adfbf4b90 Removing import of "os"
"os" is only needed for Windows as far as I can see it. However, it gets reimported for Windows, as you can see in line 22.
2016-03-14 15:30:15 +01:00
Arjen Hiemstra
041fa2b359 Import Arcus before importing Cura (and PyQt5)
Workaround an issue on certain Linux systems that causes a race
condition between Arcus and PyQt5.

Contributes to CURA-434
2016-02-10 13:55:52 +01:00
Arjen Hiemstra
9267b517d6 Fix coding style issues 2015-11-27 16:53:32 +01:00
Arjen Hiemstra
1140c853d1 Try to use Protobuf CPP implementation if it is available
The C++ implementation is far faster so should always be
used if available. If not, we log a warning since it makes
a big difference.
2015-11-04 16:42:07 +01:00
Arjen Hiemstra
ba86352642 Fix issues with crash handler and log file creation on Windows 2015-10-05 18:32:44 +02:00
Arjen Hiemstra
23e36b51e6 Fix stdout/stderr output location so we do not output to UM but to cura
Fixes #452
2015-10-01 16:43:29 +02:00
Arjen Hiemstra
5adee69b75 Fix Windows build 2015-09-29 09:24:22 -07:00
Arjen Hiemstra
9b119e996a Capture stdout and stderr on Windows to prevent py2exe messages
CURA-215 #done
2015-09-29 16:58:04 +02:00
Arjen Hiemstra
803b4fde8d Handle all uncaught exceptions through CrashHandler and gracefully fail if we have no QCoreApplication 2015-08-04 10:31:25 +02:00
Arjen Hiemstra
8130bae4c0 Add a crash handler to catch uncaught exceptions
This should catch any uncaught exceptions and avoid the Py2Exe message
about Cura.log

Fixes #133
2015-07-13 16:54:40 +02:00
Arjen Hiemstra
830dc45cce Make cura_app executable
Contributes to Ultimaker/Uranium#42
2015-05-27 16:31:01 +02:00
Arjen Hiemstra
96e0faf937 Rename cura.py to cura_app.py to prevent conflicts with "cura" directory
Contributes to Ultimaker/Uranium#41
2015-05-21 15:13:06 +02:00