Different cache filename

Discussion in 'Python' started by Fabian PyDEV, Apr 20, 2013.

  1. Fabian PyDEV

    Fabian PyDEV Guest

    Hi,

    when load a module "mymodule.py" with importlib.machinery.SourceFileLoader a bytecode file is created as mymodule.cpython-33.pyc.

    If I load a module "mymodule.ext.py" the same way the same bytecode file is created as mymodule.cpython-33.pyc.

    Is there any way I could tell python to generate the bycode file as mymodule.ext.cpython-33.pyc?

    Regards,
    Fabian
    Fabian PyDEV, Apr 20, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?Sm9l?=

    Extract filename from a filename typed by user

    =?Utf-8?B?Sm9l?=, Aug 23, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,002
    Travis Murray
    Aug 24, 2004
  2. Replies:
    1
    Views:
    1,431
    Roland de Ruiter
    Jun 15, 2006
  3. Ed
    Replies:
    10
    Views:
    45,727
    alok000707
    Jul 13, 2010
  4. Beauregard T. Shagnasty

    Re: filename.gif or filename.gif.jpg?

    Beauregard T. Shagnasty, May 30, 2008, in forum: HTML
    Replies:
    1
    Views:
    733
    Jonathan N. Little
    May 30, 2008
  5. Bergamot
    Replies:
    0
    Views:
    433
    Bergamot
    May 30, 2008
Loading...

Share This Page