-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
What steps will reproduce the problem?
1. Call program from another directory (e.g.
'../submitTool/gcj_init_contest.py')
What is the expected output? What do you see instead?
Error is expected (mentioned in documentation that scripts must be called from
the proper directory) -- I get an error message mentioning failure to find
config file. See below (additional information) for how I feel the program
should work & reasons why.
What version of the product are you using? On what operating system?
Beta2, linux x86 (Python 2.7.1)
Please provide any additional information below.
It would be more user-friendly if we could call the scripts from within the
source file directory (either typing in the relative path or using an alias).
This would obviate the need to configure the source file location, and
facilitate the submission of files from different directories corresponding to
different contests. The contest-id corresponding to a given source directory
could also be stored in a specially-named config file in that directory,
minimizing the configuration required to participate in a different contest.
IOW contest-specific configuration should be contained in the source directory
and located based on where the program is called from (+ an optional
commandline parameter) while site-specific configuration should stay where it
currently is.
I don't know Python but surely it's possible for the script to discover where
it is located in the filesystem and thus find the 'config' directory no matter
where it's called from?
Original issue reported on code.google.com by sumu...@gmail.com on 8 May 2011 at 4:36
Reactions are currently unavailable