-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Checks for CUDA_PATH and then CUDA_HOME to find the cuda include directory. Checks for FLAMEGPU_INC_DIR and then FLAMEGPU2_INC_DIR for the flamegpu include direcotry Part of #253
- Loading branch information
Showing
3 changed files
with
123 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# Notify @PYTHON_MODULE_NAME@ of where to find RTC headers (This must occur before module load) | ||
import sys, os; | ||
if not "FLAMEGPU2_INC_DIR" in os.environ: | ||
os.environ["FLAMEGPU2_INC_DIR"] = os.path.dirname(os.path.realpath(__file__)) + "/include"; | ||
if not "FLAMEGPU_INC_DIR" in os.environ or not "FLAMEGPU2_INC_DIR" in os.environ: | ||
os.environ["FLAMEGPU_INC_DIR"] = os.path.dirname(os.path.realpath(__file__)) + "/include"; | ||
else: | ||
print("@PYTHON_MODULE_NAME@ warning: env var 'FLAMEGPU2_INC_DIR' is present, RTC headers may be incorrect.", file=sys.stderr); | ||
print("@PYTHON_MODULE_NAME@ warning: env var 'FLAMEGPU_INC_DIR' is present, RTC headers may be incorrect.", file=sys.stderr); | ||
# Normal module stuff | ||
__all__ = ["@PYTHON_MODULE_NAME@"] | ||
from .@PYTHON_MODULE_NAME@ import * |