| 12345678910111213141516171819202122232425262728293031323334 |
- // Filename: executionEnvironment.h
- // Created by: drose (15May00)
- //
- ////////////////////////////////////////////////////////////////////
- //
- // PANDA 3D SOFTWARE
- // Copyright (c) Carnegie Mellon University. All rights reserved.
- //
- // All use of this software is subject to the terms of the revised BSD
- // license. You should have received a copy of this license along
- // with this source code in a file named "LICENSE."
- //
- ////////////////////////////////////////////////////////////////////
- #ifndef EXECUTIONENVIRONMENT_H
- #define EXECUTIONENVIRONMENT_H
- #include "ppremake.h"
- #include "filename.h"
- ////////////////////////////////////////////////////////////////////
- // Class : ExecutionEnvironment
- // Description : This class is borrowed from dtool/src/dtoolutil, and
- // stripped down to just the bare minimum that Filename
- // needs; and also modified to build outside of Panda.
- ////////////////////////////////////////////////////////////////////
- class ExecutionEnvironment {
- public:
- static string get_environment_variable(const string &var);
- static string expand_string(const string &str);
- static Filename get_cwd();
- };
- #endif
|