Skip to content
Snippets Groups Projects

initialize.m: make string operation compatible with PC

Closed Johannes Pfeifer requested to merge path_setting into master
1 unresolved thread

PC systems use a backslash as file separator

Merge request reports

Pipeline #737 passed with warnings

Pipeline passed with warnings for 706e9414 on path_setting

Approval is optional

Closed by Johannes PfeiferJohannes Pfeifer 6 years ago (Feb 10, 2019 12:18pm UTC)

Merge details

  • The changes were not merged into master.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
16 16 % along with Dynare. If not, see <http://www.gnu.org/licenses/>.
17 17
18 18 % Get the path to the dseries toolbox.
19 dseries_src_root = strrep(which('@dseries/initialize.m'),'@dseries/initialize.m','');
19 if ispc()
20 dseries_src_root = strrep(which('@dseries\initialize.m'),'@dseries\initialize.m','');
21 else
22 dseries_src_root = strrep(which('@dseries/initialize.m'),'@dseries/initialize.m','');
23 end
  • @sebastien No good reason. I considered that option, but went for an if-clause, because I know the old code works on the server and the new code on my machine. Testing the behavior of filesep would have been more complicated. But feel free to ignore this PR and go for the filesep version.

  • Superseded by e232e940

  • Please register or sign in to reply
    Loading