adonthell-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Adonthell-commits] CVS: adonthell/src prefs.cc,1.32,1.33 python_class.


From: Kai Sterker <address@hidden>
Subject: [Adonthell-commits] CVS: adonthell/src prefs.cc,1.32,1.33 python_class.cc,1.9,1.10
Date: Thu, 20 Feb 2003 16:03:14 -0500

Update of /cvsroot/adonthell/adonthell/src
In directory subversions:/tmp/cvs-serv23599

Modified Files:
        prefs.cc python_class.cc 
Log Message:
FIXED importing directories containing "'" characters

Index: prefs.cc
===================================================================
RCS file: /cvsroot/adonthell/adonthell/src/prefs.cc,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -r1.32 -r1.33
*** prefs.cc    20 Feb 2003 17:27:41 -0000      1.32
--- prefs.cc    20 Feb 2003 21:03:11 -0000      1.33
***************
*** 319,323 ****
  
          // now try again
!         if (!(prefsin = fopen (fname.c_str (), "r"))) return false;
      }
  
--- 319,327 ----
  
          // now try again
!         if (!(prefsin = fopen (fname.c_str (), "r")))
!         {
!             fprintf (stderr, "*** warning: prefs::read_adonthellrc: creating 
config file failed\n");
!             return false;
!         }
      }
  

Index: python_class.cc
===================================================================
RCS file: /cvsroot/adonthell/adonthell/src/python_class.cc,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** python_class.cc     29 Sep 2002 18:22:25 -0000      1.9
--- python_class.cc     20 Feb 2003 21:03:11 -0000      1.10
***************
*** 56,60 ****
      char buf[256];
      
!     sprintf ( buf, "import sys ; sys.path.insert(0, '%s')", name );
      PyRun_SimpleString ( buf );
  }
--- 56,60 ----
      char buf[256];
      
!     sprintf ( buf, "import sys ; sys.path.insert(0, \"%s\")", name );
      PyRun_SimpleString ( buf );
  }
***************
*** 82,88 ****
      {
          cerr << "exec_file: " << filename << " load failed: " << endl;
- #ifdef PY_DEBUG
          show_traceback ();
! #endif
          return false;
      }
--- 82,87 ----
      {
          cerr << "exec_file: " << filename << " load failed: " << endl;
          show_traceback ();
! 
          return false;
      }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]