Commit Graph

32 Commits

Author SHA1 Message Date
wmayer
1cfae464b4 issue #0002973: Path to FreeCAD.app can't contain unicode 2017-12-02 19:37:05 +01:00
wmayer
9aab910981 add derived unit electric potential 2017-10-16 21:56:13 +02:00
wmayer
00d6df17e3 don't exit FreeCAD when Ext directory doesn't exist 2017-09-22 10:37:11 +02:00
looooo
2ff47374f2 new-style-modules: adding the possebility to import from "freecad"
(this mostly aims at new modules and extension modules which want to use pip)
- any module having problems with nameclashes can use this syntax (from freecad import module)
- current imports still work (backward cobatibility)
- python extension moduels can be installed (pip) to python std path (eg.: site-packages)

- adding app, gui to the new freecad package:
```
from freecad import app
from freecad import gui
```

- syntax for importing c++ extension will not change
```
import FreeCAD as App
import FreeCADGui as Gui
```
2017-09-20 23:25:12 +02:00
wmayer
94fcefd207 direct support of Volt in units framework 2017-09-04 12:08:29 +02:00
looooo
e219f5c2d4 App: FreeCADInit.py: force downstream modules to use either from FreeCAD import Mod or old style 2017-03-18 18:20:59 +01:00
looooo
0caad785d4 App: FreeCADInit.py: add newStyleModule function
FreeCAD._newStyleModule("MyMod") # removes MyMod from the sys.path
2017-03-18 18:20:59 +01:00
looooo
2a7fdef7e6 App: FreeCADInit.py: remove unused import + add local Mod dir 2017-03-18 18:20:59 +01:00
looooo
bcfac0e9b7 use __ModDirs__ for module directories and set the search path of FreeCAD to the base directories, which contain all the modules 2017-03-18 18:20:59 +01:00
looooo
067e661342 py3: App: FreeCADInit.py 2017-03-18 18:20:59 +01:00
Stefan Tröger
3bf749f0fd FEM Post: Give access to cmake BUILD variables from python
This commit adds a attribute __cmake__ to App which is a list holding all compile time cmake variables starting with BUILD.

Only export BUILD variables
2016-05-18 21:35:15 +02:00
Lorenz Hüdepohl
7f355febda Add lib64 to python path
On certain distributions the library directories are called "lib64" on
amd64 machines
2016-03-13 01:18:18 +01:00
Abdullah Tahiri
f1a3276d37 Bug fix: Add System-wide Macro dir to python path
=================================================

Self explanatory, so that macros in system-wide location can import modules therein.
2016-01-11 19:25:18 +01:00
wmayer
64a20a83cc + PrintError is not part of FreeCAD but FreeCAD.Console 2016-01-09 21:21:17 +01:00
wmayer
e9e9a38865 + improve exception handling in initialization scripts 2015-12-29 23:42:29 +01:00
wmayer
4da63d1d03 + fixes #0002238: Python: Environment Variable 'path' with mutated vowel 2015-09-05 14:52:06 +02:00
wmayer
477099bbfe + remove useless stuff from Init files 2015-01-13 16:19:19 +01:00
wmayer
5912342e3f + support of home path with non-ASCII chars 2014-10-19 17:27:02 +02:00
wmayer
003c2bf77d + fix warnings with clang 2014-09-24 15:55:36 +02:00
Sebastian Hoogen
57db95a1c3 issue #1701 removed further except: statements 2014-09-17 11:57:32 +02:00
wmayer
c565cf0c78 + Handle empty system path in init script 2014-02-21 13:29:22 +01:00
jriegel
69b4dd0fac changing ym to um 2013-12-10 23:05:08 +01:00
jriegel
cfa7045408 Some fixes in unit system 2013-12-08 19:48:13 +01:00
jriegel
dea9ea82c5 fix semicolon in Init script 2013-12-06 00:13:22 +01:00
jriegel
272e60671b some fixes and comparison interface for Unit and Quantity python objects 2013-12-06 00:06:58 +01:00
jriegel
958a14ddbe fis for fix for spelling.... 2013-12-02 21:06:10 +01:00
jriegel
62fc4c3a1e Fix some spelling 2013-12-02 19:50:51 +01:00
jriegel
15ecd1ffe8 Adding Unit definition to the python modul 2013-11-30 21:46:36 +01:00
wmayer
f1f3151345 +Relicense from GPL to LGPL 2013-09-19 11:21:03 +02:00
wmayer
b9a07509d4 0000504: Include macro directory as part of default python path
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5248 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-12-10 11:24:27 +00:00
wmayer
c91caf2707 + do not override Mod modules with misleading Macro path
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5196 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-11-28 11:28:25 +00:00
wmayer
120ca87015 + unify DLL export defines to namespace names
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00