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.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/src/Slice/Python.cpp b/cpp/src/Slice/Python.cpp
index 3b7eca9c3d6..e5d7ce8760a 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,8 +398,6 @@ 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"
@@ -659,13 +657,15 @@ Slice::Python::compile(const vector<string>& argv)
FileTracker::instance()->addFile(file);
//
- // Python magic comment to set the file encoding, it must be first or second line
+ // Emit a Python magic comment to set the file encoding.
+ // It must be the first or second line.
//
out << "# -*- coding: utf-8 -*-\n";
printHeader(out);
printGeneratedHeader(out, base + ".ice", "#");
+
//
- // Generate the Python mapping.
+ // Generate Python code.
//
generate(u, all, checksum, includePaths, out);