25 Commits

Author SHA1 Message Date
Thomas-Karl Pietrowski
3a61cf3152 Little typo 2016-04-21 19:41:10 +02:00
Thomas-Karl Pietrowski
1a52454165 This should be fine now.. 2016-04-21 19:09:15 +02:00
Thomas-Karl Pietrowski
61069e9a71 Making the fix working with a list of PATHS seperated by os.pathsep
Needs testing but should work. (fingers crossed)
2016-04-21 17:34:33 +02:00
Thomas-Karl Pietrowski
286673e812 Making WORKAROUND a true marker 2016-04-19 20:18:07 +02:00
Thomas-Karl Pietrowski
98c84798c6 Making sure we got the realpath when using an absolute path 2016-04-19 20:17:20 +02:00
Thomas-Karl Pietrowski
8c0d7aea8a Merge branch 'pythonpath-fix-reworked' of https://github.com/thopiekar/Cura into pythonpath-fix-reworked 2016-04-19 19:39:04 +02:00
Thomas-Karl Pietrowski
102e13b152 Doing the check the other way round.. 2016-04-19 19:35:31 +02:00
Thomas Karl Pietrowski
e040029a41 Just a little typo 2016-04-19 19:18:05 +02:00
Thomas-Karl Pietrowski
839bc1fec8 Making PR #708 more concrete
Now a check is made whether PYTHONPATH is set at all. So 'normal' installations will pass that section.
After that sys.path is checked whether the last element is PYTHONPATH.
If it is PYTHONPATH will be moved before entry at sys.path[1], because sys.path[0] is os.curdir. Inserting PYTHONPATH in front of it might be unsave.
2016-04-19 19:11:14 +02:00
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