2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 18:12:43 +00:00

- fixes module name if run from another directory where the .pyste file is located

[SVN r22977]
This commit is contained in:
Bruno da Silva de Oliveira
2004-05-30 23:14:10 +00:00
parent b58812e7f1
commit a9cd67873c
4 changed files with 11 additions and 4 deletions

View File

@@ -1,3 +1,11 @@
27 May 2004
Applied patch by Paul Bridger that solves a problem on windows regarding
spaces on paths. Thanks Paul!
Applied another patch that fixes the module name if pyste is run from
another directory of where the .pyste file is located. Patch contributted
by Paul Bridger.
17 May 2004
Applied a patch by Roman Yakovenko that makes the export of unnamed enums
better. Thanks Roman!

View File

@@ -11,5 +11,4 @@
- args() support
- --file-list, allowing the user to pass the filename of a file with the pyste
files
- set policies to methods with the same name

View File

@@ -111,7 +111,7 @@ class CppParser:
includes = self._IncludeParams(filename)
defines = self._DefineParams()
# call gccxml
cmd = 'gccxml %s %s %s -fxml=%s'
cmd = 'gccxml %s %s "%s" -fxml=%s'
filename = self.Unixfy(filename)
xmlfile = self.Unixfy(xmlfile)
status = os.system(cmd % (includes, defines, filename, xmlfile))

View File

@@ -159,7 +159,7 @@ def ParseArguments():
if not files:
Usage()
if not module:
module = os.path.splitext(files[0])[0]
module = os.path.splitext(os.path.basename(files[0]))[0]
if not out:
out = module
if not multiple: