Author Message

<  resources  ~  ofProject script for windows

PostPosted: Sat Feb 06, 2010 6:57 am
Joined: Tue Sep 01, 2009 6:44 pmPosts: 16Location: Hong Kong
Seems that there is no ofProject scripts for windows... so I modified the linux version. Get it from the attachment.

What I have modified is just adding call to Ft.Lib.Uri.OsPathToUri whenever I found an error of "The URI scheme C is not supported by resolver FtUriResolver".

I don't know how to setup to let it be called directly in command line by "ofProject"... Hope someone can add this function as a install script and place it in windows version of OF...

How to set it up:
1. Install python 2.5 (I don't know if 2.6 works, but it should...)
2. Install Amara
3. Install 4Suite-XML
4. Download my attachment and unzip it somewhere.
5. Open "ofEnvironment.py" in the unzipped folder and set the value of of_root.
6. done!

How to use it (if you haven't used ofProject before):
Open command line and type...
Code:
C:\Python25\python.exe C:\path\to\ofProjectManager.py

It should print the usage of it.

An example:
To create a new project called "testApp".
Code:
C:\Python25\python.exe C:\path\to\ofProjectManager.py create testApp

And you should see the project folder in apps\myApps
Attachments:
ofProjectManager.zip [3.01 KiB]
Downloaded 22 times

Offline Profile
PostPosted: Mon Feb 08, 2010 9:55 am
User avatarJoined: Mon May 14, 2007 10:57 amPosts: 720Location: Melbourne, Australia
nice work!

One possible way to use this script would be to call it from a codeblocks plugin as I have done for linux, that way you don't have to run it from the command line (which is more annoying to do in windows). If you are interested have a look here:
viewtopic.php?f=5&t=2952



_________________
Pierre Proske - www.digitalstar.net
Offline Profile

Display posts from previous:  Sort by:

All times are UTC
Page 1 of 1
2 posts
Users browsing this forum: No registered users and 1 guest
Search for:
Post new topic  Reply to topic
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
cron