Previous Thread
Next Thread
Print Thread
Where is the %MIAME% environment variable set? #28779 11 Sep 15 02:10 PM
Joined: Jun 2001
Posts: 713
S
Steven Shatz Offline OP
Member
OP Offline
Member
S
Joined: Jun 2001
Posts: 713
If I understand this correctly, when launching APN, it is not possible to specify a miame ini file. Thus, the default c:\vm\miame\miame.ini file is always used. That ini file (from the required A-Shell Windows install, which can be modified) references %MIAME% in several places. Where does that environment variable get set?

(Under System Variables on my Win 7 PC, I see an "APN" env var, but not one for "MIAME".)

Re: Where is the %MIAME% environment variable set? #28780 11 Sep 15 02:29 PM
Joined: Jun 2001
Posts: 3,376
J
Jorge Tavares - UmZero Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 3,376
That variable is handled by A-Shell at run time, as well as %MIAMEFILE%


Jorge Tavares

UmZero - SoftwareHouse
Brasil/Portugal
Re: Where is the %MIAME% environment variable set? #28781 11 Sep 15 02:31 PM
Joined: Jun 2001
Posts: 713
S
Steven Shatz Offline OP
Member
OP Offline
Member
S
Joined: Jun 2001
Posts: 713
Thanks Jorge, but I thought APN doesn't run A-Shell. It just references some A-Shell Windows files.

Re: Where is the %MIAME% environment variable set? #28782 11 Sep 15 02:46 PM
Joined: Nov 2006
Posts: 2,192
S
Stephen Funkhouser Online Content
Member
Online Content
Member
S
Joined: Nov 2006
Posts: 2,192
You can specify a different miame file in the project settings. There's documentation on how to do this in the APN wiki . The file paths can be samba shares from a Linux server.

For example, I have a Linux virtual machine I use for development. I have the /vm directory shared via samba. I also create a miame-editor.ini and change the device statements to reference the unc path, and this is the miame ini file I use for Window's editors. Note, I had to do this with the A-Shell editor also, so if you used that previously you can probably reuse the miame file.


Stephen Funkhouser
Diversified Data Solutions
Re: Where is the %MIAME% environment variable set? #28783 11 Sep 15 02:57 PM
Joined: Jun 2001
Posts: 11,645
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,645
Wow, a lot of crossing posts here - thanks to all of the participation!

Here's my 5 cents:

1. The APN environment variable is created by APN-#.##.exe installer. If you install by some other means, such as a zip file, or manually relocate your APN directory, you'll need to fix or reestablish the APN environment variable definition in the Windows Computer > System Properties > Advanced System Properties > Environment Variables > System variables applet.

2. Believe it or not, APN does not care about the miame.ini, which perhaps explains why there is no command line option to set it. It is only the integrated compiler that needs to know about the miame.ini. Even if you don't actually use the integrated compiler to explicitly compile programs within APN, APN internally calls the integrated compiler (with some special switches), whenever a program file is loaded or saved in order to obtain a map of the interconnected source files. (The compiler creates the map, and APN uses it without any direct need to access the miame.ini.)

3. The %MIAME% environment variable is created on the fly by the compiler, based on the -ini switch passed to it. (This is directly analogous to the way A-Shell creates the %MIAME% environment variable on the fly based on the -i switch passed to it.) But the variable definition only lives for the duration of the compilation (or the A-Shell session). (As Jorge mentions above, both also create %MIAMEFILE% variable which points directly to the miame.ini, but that is irrelevant in the APN context.)

4. A full A-Shell Windows installation isn't actually required for APN. You could set up your miame.ini from scratch, since APN and its integrated compiler don't actually use A-Shell per se; mainly it's just the A-Shell disk environment that it needs. However, configuring and using APN will certainly be easier if you have a local A-Shell/Windows installation. (A working miame.ini will already be available, as will an environment for testing the programs you edit and compile.)

5. Since the APN compiler reads the specified ini file for every program loaded or saved, it might make sense to create a specialized copy of the miame.ini that has just the parts that a are essential to compilation.

I've updated the APN Wiki to include some of the above information and otherwise attempt to clarify some of these details.

Re: Where is the %MIAME% environment variable set? #28784 11 Sep 15 03:21 PM
Joined: Jun 2001
Posts: 3,376
J
Jorge Tavares - UmZero Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 3,376
Apologize for my inaccurate reply but, it's usage in APN it's so straightforward that I even didn't remember it is mentioned or used there. :-)


Jorge Tavares

UmZero - SoftwareHouse
Brasil/Portugal

Powered by UBB.threads™ PHP Forum Software 7.7.3