필터 지우기
필터 지우기

How to remove "+" sign of package directory (SVN commit problem)

조회 수: 1 (최근 30일)
Andreas
Andreas 2016년 12월 12일
댓글: Andreas 2016년 12월 13일
Hello, in my project I try to use the logger https://github.com/optimizers/logging4matlab but, "unfortunately" the "Packages Create Namespaces" with a "+" in the folder name is used (I'm not allowed to commit directories starting with "+" into our SVN).
There I wonder how I could remove the "+" sign and still use the functionality shipped by logging4matlab.
I use the logging object in the following way Lg = logging.getLogger('mylogger', 'path', General.LogFileName); Lg.info('Start');
Thank you
  댓글 수: 2
José-Luis
José-Luis 2016년 12월 12일
What is Lg's type?
Andreas
Andreas 2016년 12월 12일
It's class(Lg) = logging.logging
as defined by the package
Thank you

댓글을 달려면 로그인하십시오.

채택된 답변

Adam
Adam 2016년 12월 12일
편집: Adam 2016년 12월 12일
In general you can easily remove a package by simply removing all references to the package prepended to its classes and functions (and ensuring that the functionality in the renamed folder is on your path). However, there are a few caveats. Without their package the names of the functions or classes may be too generic and/or clash with pre-existing functions. You would need to rename functions probably to include their specific use within the function name rather than within the package.
Also I don't know what kind of license comes with the 3rd party code you are using with regard to what you are allowed to do with it.
  댓글 수: 1
Andreas
Andreas 2016년 12월 13일
Thank you, yes it works now. I removed one logging from logging.logging everywhere
I think there should not be a license problem, as it is a MIT license

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Search Path에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by