UG4 / ugcore

The core functionality of UG4. Includes sources, build-scripts, and utility scripts.
https://github.com/UG4/ugcore
Other
36 stars 23 forks source link

Scripts not found in `SCRIPT_PATH` #2

Closed miho closed 8 years ago

miho commented 8 years ago

Potential problem:

UG Root&Script Paths seem to be inconsistent after ugcore refactoring:

https://github.com/UG4/ugcore/edit/master/ugbase/ug.cpp#L117 and https://github.com/UG4/ugcore/edit/master/ugbase/ug.cpp#L156 seem to be inconsistent.

miho commented 8 years ago

/ -> GetPathSeparator()

sreiter commented 8 years ago

Thanks for spotting it! It's a little unfortunate that paths are specified in two different functions in ug.cpp. An optional 'bool force' parameter to 'SetRootPath' could be an alternative (defaults to 'true').