uid issue
This commit is contained in:
25
vscript/languages/python/vpython/init.py
Normal file
25
vscript/languages/python/vpython/init.py
Normal file
@ -0,0 +1,25 @@
|
||||
# Main python module - establishes the root scope for all python vscripts
|
||||
|
||||
# hook up to the eclipse pydev debug server
|
||||
#import pydevd #path to pydevd.py must be on the PYTHONPATH environment variable
|
||||
#pydevd.settrace()
|
||||
|
||||
#import os
|
||||
#print("working directory: %s", os.getcwd()) # print working directory
|
||||
#
|
||||
#import sys
|
||||
#print("module search path: %s",sys.path) # print module search path
|
||||
|
||||
#sys.path.append('u:/projects/sob/src/vscript/languages/python/vpython')
|
||||
#U:\projects\sob\src\vscript\languages\python\vpython
|
||||
#print "modified module search path: " sys.path
|
||||
|
||||
#import ctypes
|
||||
|
||||
print "init.py just ran!"
|
||||
|
||||
def sayhowdy():
|
||||
print "howdy"
|
||||
|
||||
if __name__ == '__main__':
|
||||
print "hello world"
|
4968
vscript/languages/python/vpython/vpython.cpp
Normal file
4968
vscript/languages/python/vpython/vpython.cpp
Normal file
File diff suppressed because it is too large
Load Diff
17
vscript/languages/python/vpython/vpython.h
Normal file
17
vscript/languages/python/vpython/vpython.h
Normal file
@ -0,0 +1,17 @@
|
||||
//========== Copyright <20> 2008, Valve Corporation, All rights reserved. ========
|
||||
//
|
||||
// Purpose:
|
||||
//
|
||||
//=============================================================================
|
||||
|
||||
#ifndef VPYTHON_H
|
||||
#define VPYTHON_H
|
||||
|
||||
#if defined( _WIN32 )
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
IScriptVM *ScriptCreatePythonVM();
|
||||
void ScriptDestroyPythonVM( IScriptVM *pVM );
|
||||
|
||||
#endif // VPYTHON_H
|
51
vscript/languages/python/vpython/vpython.vpc
Normal file
51
vscript/languages/python/vpython/vpython.vpc
Normal file
@ -0,0 +1,51 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// Project Script
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$Macro SRCDIR "..\..\..\.."
|
||||
$Macro OUTBINDIR "."
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\source_exe_con_win32_base.vpc"
|
||||
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$AdditionalIncludeDirectories "$BASE,..\python25\include"
|
||||
//$AdditionalIncludeDirectories "$BASE;$SRCDIR\common\python\$PYTHONVER;$SRCDIR\public\python"
|
||||
|
||||
$PreprocessorDefinitions "$BASE;PROTECTED_THINGS_DISABLE;VPYTHON_TEST"
|
||||
}
|
||||
|
||||
$Linker
|
||||
{
|
||||
$AdditionalLibraryDirectories "..\python25\lib"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$Project "vpython"
|
||||
{
|
||||
//$Folder "Link libraries"
|
||||
//{
|
||||
// $File "..\python25\lib\python25.lib"
|
||||
//}
|
||||
|
||||
$Folder "Source Files"
|
||||
{
|
||||
$File "..\..\..\..\public\vscript\ivscript.h"
|
||||
$File "..\..\..\..\public\vscript\vscript_templates.h"
|
||||
$File "vpython.cpp"
|
||||
{
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
//$AdditionalOptions "/EHa"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user