--- a/version.py Wed Aug 17 15:55:56 2022 +0200
+++ b/version.py Sun Aug 21 17:44:03 2022 +0200
@@ -25,13 +25,10 @@
from __future__ import absolute_import
from __future__ import unicode_literals
+from __future__ import print_function
-import util.paths as paths
def GetCommunityHelpMsg():
"The best place to ask questions about Beremiz/PLCOpenEditor\n"
@@ -45,32 +42,6 @@
- app_dir = paths.AbsDir(__file__)
- pipe = subprocess.Popen(
- stdout=subprocess.PIPE,
- rev = pipe.communicate()[0]
- if pipe.returncode != 0:
- # if this is not mercurial repository
- # try to read revision from file
- f = open(os.path.join(app_dir, "revision"))
def GetAboutDialogInfo(info):
info.Version = app_version
@@ -107,8 +78,8 @@
- path = paths.AbsDir(__file__)
- license_path = os.path.join(path, "COPYING")
+ license_path = os.path.join( + os.path.dirname(os.path.realpath(__file__)), "COPYING") if os.path.exists(license_path):
with open(license_path) as f:
@@ -211,7 +182,7 @@
- app_version = app_version + "-" + rev.rstrip()
+app_version = "1.3-beta2" +if __name__ == "__main__":