From: duplo Date: Fri, 12 Dec 2008 10:02:53 +0000 (+0000) Subject: Change the name of the bertos utilities module X-Git-Tag: 2.1.0~666 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=96f5b22a16883476aed0d6ba1620dd48800ae4e2;p=bertos.git Change the name of the bertos utilities module git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2016 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py new file mode 100644 index 00000000..de56cfe6 --- /dev/null +++ b/wizard/bertos_utils.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python +# encoding: utf-8 +# +# Copyright 2008 Develer S.r.l. (http://www.develer.com/) +# All rights reserved. +# +# $Id:$ +# +# Author: Lorenzo Berni +# + +import os + +def isBertosDir(directory): + return os.path.exists(directory + "/VERSION") + +def bertosVersion(directory): + return open(directory + "/VERSION").readline().strip() + +def createBertosProject(directory): + if not os.path.isdir(directory): + os.mkdir(directory) + open(directory + "/project.bertos", "w") + \ No newline at end of file diff --git a/wizard/libbertos.py b/wizard/libbertos.py deleted file mode 100644 index de56cfe6..00000000 --- a/wizard/libbertos.py +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env python -# encoding: utf-8 -# -# Copyright 2008 Develer S.r.l. (http://www.develer.com/) -# All rights reserved. -# -# $Id:$ -# -# Author: Lorenzo Berni -# - -import os - -def isBertosDir(directory): - return os.path.exists(directory + "/VERSION") - -def bertosVersion(directory): - return open(directory + "/VERSION").readline().strip() - -def createBertosProject(directory): - if not os.path.isdir(directory): - os.mkdir(directory) - open(directory + "/project.bertos", "w") - \ No newline at end of file