Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command line tool should detect OF folder #116

Open
arturoc opened this issue Feb 27, 2016 · 1 comment
Open

command line tool should detect OF folder #116

arturoc opened this issue Feb 27, 2016 · 1 comment

Comments

@arturoc
Copy link
Member

arturoc commented Feb 27, 2016

if you are somewhere inside an OF install, it's easy to go down the path until you reach an OF_ROOT or the absolute root of the file system. if the first happens then we should use that as the default OF_ROOT.

That would simplify the command line call without having to define environment variables and is safe to assume that if one is inside an OF install running the command line tool that's the OF install they want to use.

We could also do the same for the path of the project, if the cwd is outside of any OF install but the path to the new project is inside then we could safely assume that's the OF install the user wants to use too

@hiroMTB
Copy link
Contributor

hiroMTB commented May 24, 2019

True, how can we detect oF root?
Like,

if
  there are oF folders like apps, addons, libs, scripts, etc
then 
  oF root

or

if 
  there is special hidden file (e.g. .openframeworksRoot) 
then
  oF root

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants