We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6902f65 commit 2b9d3d6Copy full SHA for 2b9d3d6
include/rawtoaces/define.h
@@ -57,6 +57,7 @@
57
#include <string>
58
#include <algorithm>
59
#include <boost/filesystem.hpp>
60
+#include <iostream>
61
62
#ifndef WIN32
63
# include <sys/stat.h>
@@ -455,9 +456,18 @@ inline dataPath &pathsFinder()
455
456
457
env = getenv( "RAWTOACES_DATA_PATH" );
458
if ( !env )
459
+ {
460
// Fallback to the old environment variable.
461
env = getenv( "AMPAS_DATA_PATH" );
462
463
+ if ( env )
464
465
+ std::cerr << "Warning: The environment variable "
466
+ << "AMPAS_DATA_PATH is now deprecated. Please use "
467
+ << "RAWTOACES_DATA_PATH instead." << std::endl;
468
+ }
469
470
+
471
if ( env )
472
path = env;
473
0 commit comments