executionEnvironment.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. // Filename: executionEnvironment.h
  2. // Created by: drose (15May00)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) Carnegie Mellon University. All rights reserved.
  8. //
  9. // All use of this software is subject to the terms of the revised BSD
  10. // license. You should have received a copy of this license along
  11. // with this source code in a file named "LICENSE."
  12. //
  13. ////////////////////////////////////////////////////////////////////
  14. #ifndef EXECUTIONENVIRONMENT_H
  15. #define EXECUTIONENVIRONMENT_H
  16. #include "ppremake.h"
  17. #include "filename.h"
  18. ////////////////////////////////////////////////////////////////////
  19. // Class : ExecutionEnvironment
  20. // Description : This class is borrowed from dtool/src/dtoolutil, and
  21. // stripped down to just the bare minimum that Filename
  22. // needs; and also modified to build outside of Panda.
  23. ////////////////////////////////////////////////////////////////////
  24. class ExecutionEnvironment {
  25. public:
  26. static string get_environment_variable(const string &var);
  27. static string expand_string(const string &str);
  28. static Filename get_cwd();
  29. };
  30. #endif