Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6531659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:54:19+00:00 2026-05-25T09:54:19+00:00

Here is the problem… I’m writing very small plugin for Blender, I have 10

  • 0

Here is the problem…

I’m writing very small plugin for Blender,
I have 10 python scripts, they parsing different file formats by using command-line, and I have a Main Python script to run all other scripts with proper commands…

for example, “Main.py” include:

txt2cfg.py -inFile -outFile…
ma2lxo.py -inFile -outFile…

Blender already include Python, so I can run “Main.py” from Blender, But I need it to work with both PC and MAC, and also doesn’t require Python installation, so I can’t use:

  • execfile(‘ txt2cfg.py -inFile -outFile ‘)
  • os.system(‘ ma2lxo.py -inFile -outFile ‘)
  • or even import subprocess

because they required Python installation in order to run *.py files.

Sorry for language

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T09:54:20+00:00Added an answer on May 25, 2026 at 9:54 am

    for example, “Main.py” include:

    txt2cfg.py -inFile -outFile…
    ma2lxo.py -inFile -outFile…

    Two things.

    1. Each other script needs a main() function and a “main-import switch”. See http://docs.python.org/tutorial/modules.html#executing-modules-as-scripts for hints on how this must look.

    2. Import and execute the other scripts.

      import txt2cfg
      import ma2lxo
      txt2cfg.main( inFile, outFile )
      ma2lxo.main( inFile, outFile )
      

    This is the simplest way to do things.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Small problem here. I have an event created on Facebook and am using the
very simple problem here... but I can't work it out. I have a simple
I have a problem here. My Zend_Forms do not render in view script. Via
Just a small SVN problem here. I setup my own SVN server Setting up
I'm having a strange problem here... I have an ASP.NET 3.5 application that has
I have an interesting problem here I've been trying to solve for the last
PROBLEM: Here's the code: import matplotlib.pyplot as plt plt.bar([1,2],[5,4]) plt.title('this is a very long
Here the problem. I have my site hosted on a shared hosting for asp.net
Odd problem here. I'm writing a simple Hangman game in PHP, and while checking
I have a problem here. I'm creating UILabels dynamically to be displayed into a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.