buggnubg - Bugs: bug #54320, How to explicitly import gnubg...

 
 

bug #54320: How to explicitly import gnubg modules?

Submitted by:  Tom Martin <tom_martin>
Submitted on:  Mon 16 Jul 2018 09:03:27 PM UTC  
 
Originator Name:  Tom Martin Item Group:  Other bug
Category:  Command line interface Release:  1.04-Release
Privacy:  Public Operating System:  All
OS Type:  Any Processor Type:  Any
Severity:  3 - Normal Open/Closed:  Open
Assigned to:  None Priority:  5 - Normal
Status:  None

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 20 Jul 2018 03:22:41 PM UTC, comment #1: 

The solution is to simply add "import gnubg" to any module you plan to import.  It seems this must refer to scripts/gnubg.py but I can't find anything inside of that file that refers to the gnubg functions such as navigate and command.  But it works so I must be overlooking something.  

Tom Martin <tom_martin>
Mon 16 Jul 2018 09:03:27 PM UTC, original submission:  

After importing a module via the command line, its functions are unable to call any gnubg function, presumably because they aren't in the namespace of the imported code.

I assume all I need to do is add the appropriate "import" statement but I can't find a way to do so.  The gnubg.py code has several imports but none of them seem to refer to navigate, command, etc.

Tom Martin <tom_martin>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by tom_martin (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.5