Skip to content

Commit a9cd678

Browse files
author
Bruno da Silva de Oliveira
committed
- fixes module name if run from another directory where the .pyste file is located
[SVN r22977]
1 parent b58812e commit a9cd678

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

pyste/NEWS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
27 May 2004
2+
Applied patch by Paul Bridger that solves a problem on windows regarding
3+
spaces on paths. Thanks Paul!
4+
5+
Applied another patch that fixes the module name if pyste is run from
6+
another directory of where the .pyste file is located. Patch contributted
7+
by Paul Bridger.
8+
19
17 May 2004
210
Applied a patch by Roman Yakovenko that makes the export of unnamed enums
311
better. Thanks Roman!

pyste/TODO

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@
1111

1212
- args() support
1313

14-
- --file-list, allowing the user to pass the filename of a file with the pyste
15-
files
14+
- set policies to methods with the same name

pyste/src/Pyste/CppParser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def ParseWithGCCXML(self, header, tail):
111111
includes = self._IncludeParams(filename)
112112
defines = self._DefineParams()
113113
# call gccxml
114-
cmd = 'gccxml %s %s %s -fxml=%s'
114+
cmd = 'gccxml %s %s "%s" -fxml=%s'
115115
filename = self.Unixfy(filename)
116116
xmlfile = self.Unixfy(xmlfile)
117117
status = os.system(cmd % (includes, defines, filename, xmlfile))

pyste/src/Pyste/pyste.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def Usage():
159159
if not files:
160160
Usage()
161161
if not module:
162-
module = os.path.splitext(files[0])[0]
162+
module = os.path.splitext(os.path.basename(files[0]))[0]
163163
if not out:
164164
out = module
165165
if not multiple:

0 commit comments

Comments
 (0)