diff --git a/scripts/UnitTests/CsprojParser/test_csproj_parser.py b/scripts/UnitTests/CsprojParser/test_csproj_parser.py index 3804784..dcc886c 100644 --- a/scripts/UnitTests/CsprojParser/test_csproj_parser.py +++ b/scripts/UnitTests/CsprojParser/test_csproj_parser.py @@ -1,5 +1,5 @@ import unittest -from parser.CsprojParser import CsprojParser +from parser.CsprojParser.CsprojParser import CsprojParser from parser.token import Token diff --git a/scripts/commands/patch_csproj_command.py b/scripts/commands/patch_csproj_command.py index 239afd0..48a3e5d 100644 --- a/scripts/commands/patch_csproj_command.py +++ b/scripts/commands/patch_csproj_command.py @@ -1,6 +1,6 @@ import commands.build_command as bcmd import utils.csproj.patcher as csproj -import parser.CsprojParser as parser +import parser.CsprojParser.CsprojParser as parser class PatchCsproj(bcmd.BuildCommand): def __init__(self, config, path_provider): diff --git a/scripts/parser/CsprojParser.py b/scripts/parser/CsprojParser/CsprojParser.py similarity index 93% rename from scripts/parser/CsprojParser.py rename to scripts/parser/CsprojParser/CsprojParser.py index 81ecca2..6b92149 100644 --- a/scripts/parser/CsprojParser.py +++ b/scripts/parser/CsprojParser/CsprojParser.py @@ -1,3 +1,4 @@ +from parser.CsprojParser.Csproj import Csproj from parser.StringValueParser import * from parser.AttributeNameParser import * from parser.token import Token @@ -122,13 +123,4 @@ class CsprojParser: def getCurrentStatement(self): token = self._statement_buffer[self._token_index] - return token - - -class Csproj: - def __init__(self, appName): - self.appName = appName - self.settings = {} - - def __str__(self): - return 'app Name: {0} settings: {1}'.format(self.appName, self.settings) \ No newline at end of file + return token \ No newline at end of file diff --git a/scripts/parser/CsprojParser/__init__.py b/scripts/parser/CsprojParser/__init__.py new file mode 100644 index 0000000..cc31abc --- /dev/null +++ b/scripts/parser/CsprojParser/__init__.py @@ -0,0 +1 @@ +__author__ = 'rzaitov'