executionEnvironment.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Filename: executionEnvironment.h
  2. // Created by: drose (15May00)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://www.panda3d.org/license.txt .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. #ifndef EXECUTIONENVIRONMENT_H
  19. #define EXECUTIONENVIRONMENT_H
  20. #include "ppremake.h"
  21. #include "filename.h"
  22. ////////////////////////////////////////////////////////////////////
  23. // Class : ExecutionEnvironment
  24. // Description : This class is borrowed from dtool/src/dtoolutil, and
  25. // stripped down to just the bare minimum that Filename
  26. // needs; and also modified to build outside of Panda.
  27. ////////////////////////////////////////////////////////////////////
  28. class ExecutionEnvironment {
  29. public:
  30. static string get_environment_variable(const string &var);
  31. static string expand_string(const string &str);
  32. static Filename get_cwd();
  33. };
  34. #endif