YoFrankie bug [#18857] On start gives ImportError: No module named frankie_scripts

GameEngine sys.path creation was broken because of a pesky slash at the end of each path name.
Win32 sys.paths were also failing when running a game that switched between blend files in different directories

On win32 for some reason making absolute paths from lib->name failed, work around this by using lib->filename.

STR_String.h, cast to float to quiet compiler warnings.
This commit is contained in:
Campbell Barton
2009-06-01 05:43:58 +00:00
parent e415fa27b0
commit 94af724293
2 changed files with 9 additions and 4 deletions

View File

@@ -142,7 +142,7 @@ public:
inline operator const char *() const { return pData; }
inline char *Ptr() { return pData; }
inline const char *ReadPtr() const { return pData; }
inline float ToFloat() const { float x=atof(pData); return x; }
inline float ToFloat() const { float x=(float)atof(pData); return x; }
inline int ToInt() const { return atoi(pData); }
// Operators