summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/Python.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Slice/Python.cpp')
-rw-r--r--cpp/src/Slice/Python.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/cpp/src/Slice/Python.cpp b/cpp/src/Slice/Python.cpp
index 3b7eca9c3d6..cf46117d345 100644
--- a/cpp/src/Slice/Python.cpp
+++ b/cpp/src/Slice/Python.cpp
@@ -250,7 +250,7 @@ PackageVisitor::readInit(const string& dir, StringList& modules, StringList& sub
IceUtilInternal::structstat st;
if(!IceUtilInternal::stat(initPath, &st))
{
- IceUtilInternal::ifstream in(initPath);
+ ifstream in(IceUtilInternal::streamFilename(initPath).c_str());
if(!in)
{
ostringstream os;
@@ -351,7 +351,7 @@ PackageVisitor::writeInit(const string& dir, const string& name, const StringLis
{
string initPath = dir + "/__init__.py";
- IceUtilInternal::ofstream os(initPath);
+ ofstream os(IceUtilInternal::streamFilename(initPath).c_str());
if(!os)
{
ostringstream os;
@@ -398,11 +398,13 @@ usage(const string& n)
"--depend-xml Generate dependencies in XML format.\n"
"--depend-file FILE Write dependencies to FILE instead of standard output.\n"
"-d, --debug Print debug messages.\n"
- "--ice Permit `Ice' prefix (for building Ice source code only).\n"
- "--underscore Permit underscores in Slice identifiers.\n"
"--all Generate code for Slice definitions in included files.\n"
"--checksum Generate checksums for Slice definitions.\n"
"--prefix PREFIX Prepend filenames of Python modules with PREFIX.\n"
+ "--ice Allow reserved Ice prefix in Slice identifiers\n"
+ " deprecated: use instead [[\"ice-prefix\"]] metadata.\n"
+ "--underscore Allow underscores in Slice identifiers\n"
+ " deprecated: use instead [[\"underscore\"]] metadata.\n"
;
}