Silly python question

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
saleem145
Posts: 130
Joined: Mon Jul 02, 2012 4:47 pm

Silly python question

Post by saleem145 »

Hello,

One quick question -- I have two python scripts that use the same function. I want to factor the code and put these into a seperate file, say Common.py. In each of the files I include a statement

from Common import *

When I run unopkg add I get the following error....

ERROR: Couldn't load file...for reason type Common.* is unknown

Thanks,

Saleem
OpenOffice 3.4.0
Mac OS X 10.5.8
User avatar
karolus
Volunteer
Posts: 1243
Joined: Sat Jul 02, 2011 9:47 am

Re: Silly python question

Post by karolus »

Hello

Code: Select all

from common import myfunction
whats the Problem?
Karo
Libreoffice 25.2… on Debian 13 (trixie) (on RaspberryPI5)
Libreoffice 25.8… flatpak on Debian 13 (trixie) (on RaspberryPI5)
saleem145
Posts: 130
Joined: Mon Jul 02, 2012 4:47 pm

Re: Silly python question

Post by saleem145 »

unopkg complains...
OpenOffice 3.4.0
Mac OS X 10.5.8
hanya
Volunteer
Posts: 885
Joined: Fri Nov 23, 2007 9:27 am
Location: Japan

Re: Silly python question

Post by hanya »

Please, edit this thread's initial post and add "[Solved]" to the subject line if your problem has been solved.
Apache OpenOffice 4-dev on Xubuntu 14.04
Post Reply