Environmental override for initialization
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sat, 12 Nov 2016 07:31:53 +0000 (23:31 -0800)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sat, 12 Nov 2016 07:31:53 +0000 (23:31 -0800)
markov.cpp

index efd84a7..25e432f 100644 (file)
@@ -10,6 +10,8 @@ MarkovChain __chain;
 
 extern "C" {
     void initialize_chain(char* p) {
+        if(getenv("MARKOV_CHAIN")) p = getenv("MARKOV_CHAIN");
+
         std::string path(p);
         std::ifstream in(path);
 
This page took 0.03032 seconds and 4 git commands to generate.