4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the Revised BSD License.
7 This program is distributed in the hope that it will be useful,
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 Revised BSD License for more details.
12 Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k
13 Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski
15 $FileInfo: realpath.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $
18 from __future__
import absolute_import
, division
, print_function
, unicode_literals
;
19 import os
, sys
, argparse
;
21 __version_info__
= (0, 0, 5, "rc3");
22 if(__version_info__
[3]!=None):
23 __version__
= str(__version_info__
[0])+"."+str(__version_info__
[1])+"."+str(__version_info__
[2])+"+"+str(__version_info__
[3]);
24 if(__version_info__
[3]==None):
25 __version__
= str(__version_info__
[0])+"."+str(__version_info__
[1])+"."+str(__version_info__
[2]);
29 profullname
= proname
+" "+prover
;
31 parser
= argparse
.ArgumentParser(conflict_handler
= "resolve", add_help
= True);
32 parser
.add_argument("-v", "--version", action
= "version", version
= profullname
);
33 parser
.add_argument("filepath", help = "enter a file name/path");
34 getargs
= parser
.parse_args();
35 print(os
.path
.realpath(getargs
.filepath
));