Go Back   ZeroC Forums > Bug Reports

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 02-21-2006
hiasl hiasl is offline
Registered User
 
Name: Matthias Weber
Organization: University of Erlangen-Nuremberg
Project: This baby is still nameless
 
Join Date: Jul 2005
Posts: 23
Python: #include/import problem with slice2py

Hi,

including a slice from
#include "../../a_1/b_2/c_3.ice"

slice2pys into

import .._.._a_1_b_2_c_3_ice

which leads to an Syntax Error.

Bye,
Matthias

Last edited by hiasl : 02-21-2006 at 06:03 AM.
Reply With Quote
  #2 (permalink)  
Old 02-21-2006
mes's Avatar
mes mes is online now
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 971
Section 22.15 of the Ice manual describes the semantics of include files in the Python language mapping. It is the user's responsibility to ensure that #include statements are translated into an equivalent import statement that is appropriate for your environment.

For example, if you include the option -I../.. when running slice2py, then the import statement becomes

import a_1_b_2_c_3_ice

See the Ice manual for more information.

Take care,
- Mark
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem when import IcePy in Ice 3.1.1 rc_hz Help Center 14 04-11-2007 07:22 AM
"import Ice" fails in Python 2.4 jay Help Center 2 05-29-2006 01:12 PM
Impact of include on on structs in modules(Python) petrilli Help Center 2 03-11-2005 12:18 AM
Slice2cpp Include Problem tony_h Help Center 4 08-27-2004 12:28 PM
problem in C++ include file ordering peter.s Bug Reports 1 03-26-2004 05:09 PM


All times are GMT -4. The time now is 05:36 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.